summaryrefslogtreecommitdiffstats
path: root/sys/cddl
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2014-11-02 19:09:34 +0000
committerdelphij <delphij@FreeBSD.org>2014-11-02 19:09:34 +0000
commit78541e1020318c8a7b38275b4375f6246eeec45c (patch)
tree1316c18f7c0b2c112b9157dad6a1bb7c01059cba /sys/cddl
parent9252414b60494fbcc0c875b55ca6755c3ac87d7e (diff)
downloadFreeBSD-src-78541e1020318c8a7b38275b4375f6246eeec45c.zip
FreeBSD-src-78541e1020318c8a7b38275b4375f6246eeec45c.tar.gz
MFC r273267:
Add tunable vfs.zfs.space_map_blksz for space map's maximum block size.
Diffstat (limited to 'sys/cddl')
-rw-r--r--sys/cddl/contrib/opensolaris/uts/common/fs/zfs/space_map.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/space_map.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/space_map.c
index 94790b9..aeac124 100644
--- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/space_map.c
+++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/space_map.c
@@ -37,6 +37,8 @@
#include <sys/refcount.h>
#include <sys/zfeature.h>
+SYSCTL_DECL(_vfs_zfs);
+
/*
* The data for a given space map can be kept on blocks of any size.
* Larger blocks entail fewer i/o operations, but they also cause the
@@ -44,6 +46,8 @@
* when only a few blocks have changed since the last transaction group.
*/
int space_map_blksz = (1 << 12);
+SYSCTL_INT(_vfs_zfs, OID_AUTO, space_map_blksz, CTLFLAG_RDTUN, &space_map_blksz, 0,
+ "Maximum block size for space map. Must be power of 2 and greater than 4096.");
/*
* Load the space map disk into the specified range tree. Segments of maptype
OpenPOWER on IntegriCloud