gfs2: Turn the rgrplvb mount option on by default
PATCH 1/1 gfs2: Turn the rgrplvb mount option on by default
Hi,
This patch changes the gfs2 mount code so that it defaults to using the rgrplvb option for block allocations, and only shows you the option if it's not the default.
Signed-off-by Bob Peterson <[email protected]>
--- fs/gfs2/incore.h | 2 ++ fs/gfs2/ops_fstype.c | 1 + fs/gfs2/super.c | 8 ++++++-- 3 files changed, 9 insertions(+), 2 deletions(-)
fs/gfs2/incore.h +2 -0
@@ -572,6 +572,8 @@ struct gfs2_statfs_change_host {#define GFS2_ERRORS_RO 2/* place holder for future feature */ #define GFS2_ERRORS_PANIC 3 +#define GFS2_RGRPLVB_DEFAULT 1 +struct gfs2_args {char ar_lockproto[GFS2_LOCKNAME_LEN ];/* Name of the Lock Protocol */ char ar_locktable[GFS2_LOCKNAME_LEN ];/* Name of the Lock Table */
fs/gfs2/ops_fstype.c +1 -0
@@ -1285,6 +1285,7 @@ static struct dentry *gfs2_mount(struct file_system_type *fs_type, int flags, args.ar_statfs_quantum =30 ; args.ar_quota_quantum =60 ; args.ar_errors =GFS2_ERRORS_DEFAULT ; + args.ar_rgrplvb =GFS2_RGRPLVB_DEFAULT ; error =gfs2_mount_args (&args, data);if (error) {
fs/gfs2/super.c +6 -2
@@ -1459,8 +1459,12 @@ static int gfs2_show_options(struct seq_file *s, struct dentry *root)seq_puts (s,",nobarrier" );if (test_bit (SDF_DEMOTE , &sdp->sd_flags))seq_puts (s,",demote_interface_used" ); -if (args->ar_rgrplvb) -seq_puts (s,",rgrplvb" ); +if (args->ar_rgrplvb !=GFS2_RGRPLVB_DEFAULT ) { +if (args->ar_rgrplvb) +seq_puts (s,",rgrplvb" ); +else +seq_puts (s,",norgrplvb" ); + }if (args->ar_loccookie)seq_puts (s,",loccookie" );return 0 ;