summaryrefslogtreecommitdiffstats
path: root/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_traverse.c
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2016-10-29 08:57:35 +0000
committermav <mav@FreeBSD.org>2016-10-29 08:57:35 +0000
commite32c2dc1d0d28781cee98fda2461e74d1bfc211f (patch)
treecaa2f3eb31494258c2cd982b4dbfd34f0d404a70 /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_traverse.c
parent4a2d37ab7e7fdaba023beb5e94a7a090c7d17fa3 (diff)
downloadFreeBSD-src-e32c2dc1d0d28781cee98fda2461e74d1bfc211f.zip
FreeBSD-src-e32c2dc1d0d28781cee98fda2461e74d1bfc211f.tar.gz
MFC r306456: Add #ifdef _KERNEL around send_holes_without_birth_time sysctl.
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_traverse.c')
-rw-r--r--sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_traverse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_traverse.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_traverse.c
index a137214..fcd704f 100644
--- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_traverse.c
+++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_traverse.c
@@ -42,9 +42,11 @@
int32_t zfs_pd_bytes_max = 50 * 1024 * 1024; /* 50MB */
boolean_t send_holes_without_birth_time = B_TRUE;
+#ifdef _KERNEL
SYSCTL_DECL(_vfs_zfs);
SYSCTL_UINT(_vfs_zfs, OID_AUTO, send_holes_without_birth_time, CTLFLAG_RWTUN,
&send_holes_without_birth_time, 0, "Send holes without birth time");
+#endif
typedef struct prefetch_data {
kmutex_t pd_mtx;
OpenPOWER on IntegriCloud