f2fs: support discard submission error injection
authorChao Yu <yuchao0@huawei.com>
Mon, 6 Aug 2018 12:30:18 +0000 (20:30 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 13 Aug 2018 17:48:17 +0000 (10:48 -0700)
commitb83dcfe67142ea9f4bfaa1e9e21504be9e3c1bf7
tree1d82393efe973ad6ffa36302bc855c169e78f712
parent35ec7d5748849762008e8ae9f8ad2766229d5794
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>
fs/f2fs/f2fs.h
fs/f2fs/segment.c
fs/f2fs/super.c