diff options
author | Sahitya Tummala <stummala@codeaurora.org> | 2018-07-02 08:07:40 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-07-29 03:26:08 +0200 |
commit | dc1328027b53586cc6b668c6654f9482e505699c (patch) | |
tree | adce1e4cba0ed26ba09f3b67a9af7fc390162bff /fs/f2fs/super.c | |
parent | f2fs: check the right return value of memory alloc function (diff) | |
download | linux-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.c | 2 |
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; } |