GFS2: Display nobarrier option in /proc/mounts
authorSteven Whitehouse <swhiteho@redhat.com>
Fri, 30 Oct 2009 10:48:53 +0000 (10:48 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 3 Dec 2009 11:57:05 +0000 (11:57 +0000)
Since the default is barriers on, this only displays the
nobarrier option when that is active.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/super.c

index 5e4b314..c282ad4 100644 (file)
@@ -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;
 }