f2fs: add fault injection to sysfs
authorSheng Yong <shengyong1@huawei.com>
Mon, 16 May 2016 04:38:50 +0000 (12:38 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 16 May 2016 22:32:02 +0000 (15:32 -0700)
commit087968974fcd9e8c910bba73f3393a49b7380ca6
tree4b7ec1ac4320555fef0ad99163701ec2e566d860
parentb951a4ec165af4973b2bd9c80fb5845fbd840435
f2fs: add fault injection to sysfs

This patch introduces a new struct f2fs_fault_info and a global f2fs_fault
to save fault injection status. Fault injection entries are created in
/sys/fs/f2fs/fault_injection/ during initializing f2fs module.

Signed-off-by: Sheng Yong <shengyong1@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/super.c