f2fs: support fault injection for f2fs_kmem_cache_alloc()
authorChao Yu <chao@kernel.org>
Mon, 9 Aug 2021 00:24:48 +0000 (08:24 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 17 Aug 2021 18:59:05 +0000 (11:59 -0700)
commit324105775c1982aacbd2972b7024d8cc06474abe
treeaed4271a090d9f97d9e3f9005c375b04ea523393
parent4a4fc043f594d39edc976a3a3dce7c40ebb86f3f
f2fs: support fault injection for f2fs_kmem_cache_alloc()

This patch supports to inject fault into f2fs_kmem_cache_alloc().

Usage:
a) echo 32768 > /sys/fs/f2fs/<dev>/inject_type or
b) mount -o fault_type=32768 <dev> <mountpoint>

Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
13 files changed:
Documentation/filesystems/f2fs.rst
fs/f2fs/checkpoint.c
fs/f2fs/compress.c
fs/f2fs/data.c
fs/f2fs/dir.c
fs/f2fs/extent_cache.c
fs/f2fs/f2fs.h
fs/f2fs/gc.c
fs/f2fs/node.c
fs/f2fs/recovery.c
fs/f2fs/segment.c
fs/f2fs/super.c
fs/f2fs/xattr.c