From: Steven Whitehouse Date: Fri, 30 Oct 2009 10:48:53 +0000 (+0000) Subject: GFS2: Display nobarrier option in /proc/mounts X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=cdcfde62dac64c86ff34e483c595d568a252c433;p=linux.git 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 5e4b31441a9e1..c282ad41f3d18 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; }