]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: support configuring fault injection per superblock
authorChao Yu <yuchao0@huawei.com>
Fri, 23 Sep 2016 13:30:09 +0000 (21:30 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sat, 1 Oct 2016 00:34:31 +0000 (17:34 -0700)
commite89ae5dbcfcb539ab1d8548cea3c448ce4837feb
treeab29e8f69b8e2a40064fe7f8f81bea86d7f4a3a7
parent6a8d51a35212f58ab1ed10850d518b4d59e7a588
f2fs: support configuring fault injection per superblock

Previously, we only support global fault injection configuration, so that
when we configure type/rate of fault injection through sysfs, mount
option, it will influence all f2fs partition which is being used.

It is not make sence, since it will be not convenient if developer want
to test separated partitions with different fault injection rate/type
simultaneously, also it's not possible to enable fault injection in one
partition and disable fault injection in other one.

>From now on, we move global configuration of fault injection in module
into per-superblock, hence injection testing can be more flexible.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/acl.c
fs/f2fs/checkpoint.c
fs/f2fs/data.c
fs/f2fs/dir.c
fs/f2fs/f2fs.h
fs/f2fs/gc.c
fs/f2fs/inline.c
fs/f2fs/inode.c
fs/f2fs/node.c
fs/f2fs/super.c