GFS2: Fix ->show_options() for statfs slow
authorSteven Whitehouse <swhiteho@redhat.com>
Mon, 20 Aug 2012 16:07:49 +0000 (17:07 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 24 Sep 2012 09:47:17 +0000 (10:47 +0100)
The ->show_options() function for GFS2 was not correctly displaying
the value when statfs slow in in use.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Reported-by: Milos Jakubicek <xjakub@fi.muni.cz>
fs/gfs2/super.c

index 3cbac68030386cf53e8057cbdf59a843d71a80ba..79cac70576919af572d5e6f79b5df3ff4af53fe4 100644 (file)
@@ -1366,6 +1366,8 @@ static int gfs2_show_options(struct seq_file *s, struct dentry *root)
        val = sdp->sd_tune.gt_statfs_quantum;
        if (val != 30)
                seq_printf(s, ",statfs_quantum=%d", val);
+       else if (sdp->sd_tune.gt_statfs_slow)
+               seq_puts(s, ",statfs_quantum=0");
        val = sdp->sd_tune.gt_quota_quantum;
        if (val != 60)
                seq_printf(s, ",quota_quantum=%d", val);