From: Steven Whitehouse Date: Fri, 30 Oct 2009 10:48:53 +0000 (+0000) Subject: GFS2: Display nobarrier option in /proc/mounts X-Git-Tag: master-2009-12-21~33^2~6 X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=cdcfde62dac64c86ff34e483c595d568a252c433;hp=f25934c5f88655a8d5c3c40a540daed1f0e6dedc;p=~andy%2Flinux GFS2: Display nobarrier option in /proc/mounts Since the default is barriers on, this only displays the nobarrier option when that is active. Signed-off-by: Steven Whitehouse --- diff --git a/fs/gfs2/super.c b/fs/gfs2/super.c index 5e4b31441a9..c282ad41f3d 100644 --- a/fs/gfs2/super.c +++ b/fs/gfs2/super.c @@ -1336,6 +1336,9 @@ static int gfs2_show_options(struct seq_file *s, struct vfsmount *mnt) } seq_printf(s, ",errors=%s", state); } + if (test_bit(SDF_NOBARRIERS, &sdp->sd_flags)) + seq_printf(s, ",nobarrier"); + return 0; }