From 1e84eb5b6043f9286aa620d4daee49e163abb732 Mon Sep 17 00:00:00 2001 From: Eric Sandeen Date: Wed, 2 Dec 2009 11:21:10 -0600 Subject: [PATCH] mkfs.xfs: make lazy-count=1 the default With the xfstests fixed up, we should be able to do this now, and should add some performance benefits to the default mkfs options. Signed-off-by: Eric Sandeen Reviewed-by: Christoph Hellwig --- man/man8/mkfs.xfs.8 | 7 ++++--- mkfs/xfs_mkfs.c | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/man/man8/mkfs.xfs.8 b/man/man8/mkfs.xfs.8 index 40ea1bd70..4b147e979 100644 --- a/man/man8/mkfs.xfs.8 +++ b/man/man8/mkfs.xfs.8 @@ -457,9 +457,10 @@ counter values without needed to keep them in the superblock. This gives significant improvements in performance on some configurations. The default .I value -is 0 (off) so you must specify -.B lazy-count=1 -if you want to make use of this feature. +is 1 (on) so you must specify +.B lazy-count=0 +if you want to disable this feature for older kernels which don't support +it. .RE .TP .BI \-n " naming_options" diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c index bd92bc00f..d3ed00ae4 100644 --- a/mkfs/xfs_mkfs.c +++ b/mkfs/xfs_mkfs.c @@ -878,7 +878,7 @@ main( nodsflag = norsflag = 0; force_overwrite = 0; worst_freelist = 0; - lazy_sb_counters = 0; + lazy_sb_counters = 1; memset(&fsx, 0, sizeof(fsx)); memset(&xi, 0, sizeof(xi)); -- 2.47.2