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>
Fri, 26 Oct 2018 18:21:55 +0000 (11:21 -0700)
commit84c1b87e6a4dbd09b02bbc2c1eb395f5c51c2e4e
tree8655de122da4907354bd9a0730b864344f550081
parent5f170bdd7b9a0f935864112ef6aaea543a9d100e
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