svn commit: r273983 - stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Xin LI
delphij at FreeBSD.org
Sun Nov 2 19:09:35 UTC 2014
Author: delphij
Date: Sun Nov 2 19:09:34 2014
New Revision: 273983
URL: https://svnweb.freebsd.org/changeset/base/273983
Log:
MFC r273267:
Add tunable vfs.zfs.space_map_blksz for space map's maximum block size.
Modified:
stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/space_map.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/space_map.c
==============================================================================
--- stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/space_map.c Sun Nov 2 17:31:45 2014 (r273982)
+++ stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/space_map.c Sun Nov 2 19:09:34 2014 (r273983)
@@ -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
More information about the svn-src-stable-10
mailing list