]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
f2fs: surround fault_injection related option parsing using CONFIG_F2FS_FAULT_INJECTION
authorChengguang Xu <cgxu519@gmx.com>
Wed, 12 Sep 2018 05:32:52 +0000 (13:32 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 12 Sep 2018 20:05:33 +0000 (13:05 -0700)
commit4cb037ec3f754fdcb0f1efe9cc3269206dd2adef
treee6baac03e026d928bfec13bbf3ac6398db57df8c
parentc8e927579e00a182eda07e4c45df9c8c699c8ded
f2fs: surround fault_injection related option parsing using CONFIG_F2FS_FAULT_INJECTION

It's a little bit strange when fault_injection related
options fail with -EINVAL which were already disabled
from config, so surround all fault_injection related option
parsing code using CONFIG_F2FS_FAULT_INJECTION. Meanwhile,
slightly change warning message to keep consistency with
option POSIX_ACL and FS_XATTR.

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c