From: Sahitya Tummala Date: Mon, 2 Jul 2018 06:07:40 +0000 (+0530) Subject: f2fs: show the fsync_mode=nobarrier mount option X-Git-Tag: rel_imx_4.19.35_1.1.0~9425^2~57 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=dc1328027b53586cc6b668c6654f9482e505699c;p=linux.git 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 Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- 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; }