f2fs: split IO error injection according to RW

This patch adds to support injecting error for write IO, this can simulate
IO error like fail_make_request or dm_flakey does.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
Chao Yu 2018-09-12 09:22:29 +08:00 • committed by Jaegeuk Kim
commit 6f5c2ed0a2
4 changed files with 14 additions and 5 deletions