diff options
author | Chao Yu <yuchao0@huawei.com> | 2018-08-06 14:30:18 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-08-13 19:48:17 +0200 |
commit | b83dcfe67142ea9f4bfaa1e9e21504be9e3c1bf7 (patch) | |
tree | 1d82393efe973ad6ffa36302bc855c169e78f712 /fs/f2fs/super.c | |
parent | f2fs: split discard command in prior to block layer (diff) | |
download | linux-b83dcfe67142ea9f4bfaa1e9e21504be9e3c1bf7.tar.xz linux-b83dcfe67142ea9f4bfaa1e9e21504be9e3c1bf7.zip |
f2fs: support discard submission error injection
This patch adds to support discard submission error injection for testing
error handling of __submit_discard_cmd().
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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index bd57be470e23..30bd9138f39d 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -55,6 +55,7 @@ char *f2fs_fault_name[FAULT_MAX] = { [FAULT_TRUNCATE] = "truncate fail", [FAULT_IO] = "IO error", [FAULT_CHECKPOINT] = "checkpoint error", + [FAULT_DISCARD] = "discard error", }; void f2fs_build_fault_attr(struct f2fs_sb_info *sbi, unsigned int rate) |