summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2012-04-27 16:20:31 -0700
committerBrian Behlendorf <[email protected]>2012-04-27 16:28:02 -0700
commitafec56b43fd84edd69cb7f32030578bb35e5e1ea (patch)
tree23087a485636fcb84f966c11abaafa11835288be /module
parentad60af8e1bfe7ccdbc41f754023e06fa4e2699bc (diff)
Add zfs_mdcomp_disable module option
Expose the zfs_mdcomp_disable variable as a module option. This can be used to disable compression of zfs meta data which is enabled by default. This shouldn't need to be tuned but for most workloads, however there may be very specific instances where it makes sense to trade disk capacity for extra cpu cycles. Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module')
-rw-r--r--module/zfs/dmu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/module/zfs/dmu.c b/module/zfs/dmu.c
index 9702d5022..cda4f8428 100644
--- a/module/zfs/dmu.c
+++ b/module/zfs/dmu.c
@@ -1900,4 +1900,7 @@ EXPORT_SYMBOL(dmu_return_arcbuf);
EXPORT_SYMBOL(dmu_assign_arcbuf);
EXPORT_SYMBOL(dmu_buf_hold);
EXPORT_SYMBOL(dmu_ot);
+
+module_param(zfs_mdcomp_disable, int, 0644);
+MODULE_PARM_DESC(zfs_mdcomp_disable, "Disable meta data compression");
#endif