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>
This commit is contained in:
parent
fb35965422
commit
47871a830a
1 changed files with 2 additions and 1 deletions
|
@ -985,7 +985,8 @@ static int f2fs_show_options(struct seq_file *seq, struct dentry *root)
|
||||||
seq_printf(seq, ",io_size=%uKB", F2FS_IO_SIZE_KB(sbi));
|
seq_printf(seq, ",io_size=%uKB", F2FS_IO_SIZE_KB(sbi));
|
||||||
#ifdef CONFIG_F2FS_FAULT_INJECTION
|
#ifdef CONFIG_F2FS_FAULT_INJECTION
|
||||||
if (test_opt(sbi, 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
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue