ifdef HAVE_ZPL out source files with only ZPL bits

This commit is contained in:
Brian Behlendorf 2009-01-09 14:43:22 -08:00
parent bd6fb32e4c
commit fba5a806a8
6 changed files with 19 additions and 0 deletions

View File

@ -66,6 +66,8 @@
* so that it cannot be freed until all snapshots have been unmounted. * so that it cannot be freed until all snapshots have been unmounted.
*/ */
#ifdef HAVE_ZPL
#include <fs/fs_subr.h> #include <fs/fs_subr.h>
#include <sys/zfs_ctldir.h> #include <sys/zfs_ctldir.h>
#include <sys/zfs_ioctl.h> #include <sys/zfs_ioctl.h>
@ -1157,3 +1159,4 @@ zfsctl_umount_snapshots(vfs_t *vfsp, int fflags, cred_t *cr)
return (error); return (error);
} }
#endif /* HAVE_ZPL */

View File

@ -23,6 +23,8 @@
* Use is subject to license terms. * Use is subject to license terms.
*/ */
#ifdef HAVE_ZPL
#include <sys/types.h> #include <sys/types.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/time.h> #include <sys/time.h>
@ -975,3 +977,4 @@ zfs_sticky_remove_access(znode_t *zdp, znode_t *zp, cred_t *cr)
else else
return (secpolicy_vnode_remove(cr)); return (secpolicy_vnode_remove(cr));
} }
#endif /* HAVE_ZPL */

View File

@ -23,6 +23,8 @@
* Use is subject to license terms. * Use is subject to license terms.
*/ */
#ifdef HAVE_ZPL
#include <sys/types.h> #include <sys/types.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/systm.h> #include <sys/systm.h>
@ -692,3 +694,5 @@ zfs_log_acl(zilog_t *zilog, dmu_tx_t *tx, znode_t *zp,
seq = zil_itx_assign(zilog, itx, tx); seq = zil_itx_assign(zilog, itx, tx);
zp->z_last_itx = seq; zp->z_last_itx = seq;
} }
#endif /* HAVE_ZPL */

View File

@ -23,6 +23,8 @@
* Use is subject to license terms. * Use is subject to license terms.
*/ */
#ifdef HAVE_ZPL
#pragma ident "%Z%%M% %I% %E% SMI" #pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/types.h> #include <sys/types.h>
@ -876,3 +878,4 @@ zil_replay_func_t *zfs_replay_vector[TX_MAX_TYPE] = {
zfs_replay_create, /* TX_MKDIR_ATTR */ zfs_replay_create, /* TX_MKDIR_ATTR */
zfs_replay_create_acl, /* TX_MKDIR_ACL_ATTR */ zfs_replay_create_acl, /* TX_MKDIR_ACL_ATTR */
}; };
#endif /* HAVE_ZPL */

View File

@ -94,6 +94,8 @@
* range to just the range to be written using zfs_reduce_range. * range to just the range to be written using zfs_reduce_range.
*/ */
#ifdef HAVE_ZPL
#include <sys/zfs_rlock.h> #include <sys/zfs_rlock.h>
/* /*
@ -600,3 +602,4 @@ zfs_range_compare(const void *arg1, const void *arg2)
return (-1); return (-1);
return (0); return (0);
} }
#endif /* HAVE_ZPL */

View File

@ -25,6 +25,8 @@
/* Portions Copyright 2007 Jeremy Teo */ /* Portions Copyright 2007 Jeremy Teo */
#ifdef HAVE_ZPL
#include <sys/types.h> #include <sys/types.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/time.h> #include <sys/time.h>
@ -4559,3 +4561,4 @@ const fs_operation_def_t zfs_evnodeops_template[] = {
VOPNAME_PATHCONF, { .vop_pathconf = zfs_pathconf }, VOPNAME_PATHCONF, { .vop_pathconf = zfs_pathconf },
NULL, NULL NULL, NULL
}; };
#endif /* HAVE_ZPL */