f2fs: support fault injection to f2fs_trylock_op()
authorChao Yu <chao@kernel.org>
Sun, 12 Dec 2021 09:17:51 +0000 (17:17 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 4 Jan 2022 21:20:56 +0000 (13:20 -0800)
commit3e0203893e0dc4f64e7dc65ff5ac70e970019827
tree4a2ffb3614721d32d3aa0c199d57989b1109bb16
parentdd9d4a3a30d009c77139d0cab0f2d08b30fa3941
f2fs: support fault injection to f2fs_trylock_op()

f2fs: support fault injection for f2fs_trylock_op()

This patch supports to inject fault into f2fs_trylock_op().

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

Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Documentation/filesystems/f2fs.rst
fs/f2fs/f2fs.h
fs/f2fs/super.c