f2fs: split IO error injection according to RW
authorChao Yu <yuchao0@huawei.com>
Wed, 12 Sep 2018 01:22:29 +0000 (09:22 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 12 Sep 2018 20:07:32 +0000 (13:07 -0700)
commit6f5c2ed0a26fae6904a88622c126dfb9369548a3
tree40c3e2ae7e087365d7648e840d820e1090837d56
parent7c1a000d466235c875a989971cfda344e6bb1166
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>
Documentation/filesystems/f2fs.txt
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/super.c