diff options
| author | Chao Yu <yuchao0@huawei.com> | 2017-06-12 09:44:24 +0800 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2017-07-21 12:37:52 +0200 |
| commit | 1d04c3060e9dc538d2850c62bba28e2011224f91 (patch) | |
| tree | 8ac2e7cbd9cdbe56f11a05cc3161bb2983500261 /fs/f2fs/super.c | |
| parent | f61836c0d162e7e5cc2b0ae18b1d0601cd76beba (diff) | |
f2fs: fix to show injection rate in ->show_options
If fault injection functionality is enabled, show additional injection
rate in ->show_options.
Signed-off-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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index c582f3785..954126cfe 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -984,7 +984,8 @@ static int f2fs_show_options(struct seq_file *seq, struct dentry *root) seq_printf(seq, ",io_size=%uKB", F2FS_IO_SIZE_KB(sbi)); #ifdef CONFIG_F2FS_FAULT_INJECTION if (test_opt(sbi, FAULT_INJECTION)) - seq_puts(seq, ",fault_injection"); + seq_printf(seq, ",fault_injection=%u", + sbi->fault_info.inject_rate); #endif return 0; |
