f2fs: show the fsync_mode=nobarrier mount option
authorSahitya Tummala <stummala@codeaurora.org>
Mon, 2 Jul 2018 06:07:40 +0000 (11:37 +0530)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sun, 29 Jul 2018 01:26:08 +0000 (18:26 -0700)
This patch shows the fsync_mode=nobarrier mount option in
f2fs_show_options().

Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c

index 5e75a2b..98bfccc 100644 (file)
@@ -1342,6 +1342,8 @@ static int f2fs_show_options(struct seq_file *seq, struct dentry *root)
                seq_printf(seq, ",fsync_mode=%s", "posix");
        else if (F2FS_OPTION(sbi).fsync_mode == FSYNC_MODE_STRICT)
                seq_printf(seq, ",fsync_mode=%s", "strict");
+       else if (F2FS_OPTION(sbi).fsync_mode == FSYNC_MODE_NOBARRIER)
+               seq_printf(seq, ",fsync_mode=%s", "nobarrier");
        return 0;
 }