aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/super.c
diff options
context:
space:
mode:
authorSahitya Tummala <stummala@codeaurora.org>2019-05-24 14:38:39 +0530
committerJaegeuk Kim <jaegeuk@kernel.org>2019-05-30 09:13:54 -0700
commit81621f976176704bd6f443159691e60e1eea2544 (patch)
treec668eefdf89434acba42a347194d031fc0a7e1a5 /fs/f2fs/super.c
parentf2fs: add error prints for debugging mount failure (diff)
downloadlinux-dev-81621f976176704bd6f443159691e60e1eea2544.tar.xz
linux-dev-81621f976176704bd6f443159691e60e1eea2544.zip
f2fs: fix f2fs_show_options to show nodiscard mount option
Fix f2fs_show_options to show nodiscard mount option. Signed-off-by: Sahitya Tummala <stummala@codeaurora.org> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/super.c')
-rw-r--r--fs/f2fs/super.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 912e2619d581..1dc02101e5e5 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -1313,6 +1313,8 @@ static int f2fs_show_options(struct seq_file *seq, struct dentry *root)
seq_puts(seq, ",disable_roll_forward");
if (test_opt(sbi, DISCARD))
seq_puts(seq, ",discard");
+ else
+ seq_puts(seq, ",nodiscard");
if (test_opt(sbi, NOHEAP))
seq_puts(seq, ",no_heap");
else