summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/super.c
diff options
context:
space:
mode:
authorSahitya Tummala <stummala@codeaurora.org>2018-07-02 08:07:40 +0200
committerJaegeuk Kim <jaegeuk@kernel.org>2018-07-29 03:26:08 +0200
commitdc1328027b53586cc6b668c6654f9482e505699c (patch)
treeadce1e4cba0ed26ba09f3b67a9af7fc390162bff /fs/f2fs/super.c
parentf2fs: check the right return value of memory alloc function (diff)
downloadlinux-dc1328027b53586cc6b668c6654f9482e505699c.tar.xz
linux-dc1328027b53586cc6b668c6654f9482e505699c.zip
f2fs: show the fsync_mode=nobarrier mount option
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>
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 5e75a2bc4a45..98bfccc1d389 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -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;
}