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 5e4b31441a9e1ab4f75ed638a3e0ad72963f2d44..c282ad41f3d1860bba4301495a7303de40b57d06 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;
 }