From: Steven Whitehouse Date: Mon, 20 Aug 2012 16:07:49 +0000 (+0100) Subject: GFS2: Fix ->show_options() for statfs slow X-Git-Tag: upstream/snapshot3+hdmi~6626^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2b9731e8bb1bdc6b9da149f4e482a071747207f3;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git GFS2: Fix ->show_options() for statfs slow The ->show_options() function for GFS2 was not correctly displaying the value when statfs slow in in use. Signed-off-by: Steven Whitehouse Reported-by: Milos Jakubicek --- diff --git a/fs/gfs2/super.c b/fs/gfs2/super.c index 3cbac68..79cac70 100644 --- a/fs/gfs2/super.c +++ b/fs/gfs2/super.c @@ -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);