summaryrefslogtreecommitdiffstats
path: root/lib/fault-inject-usercopy.c
diff options
context:
space:
mode:
authorChao Yu <chao@kernel.org>2023-04-10 04:17:22 +0200
committerJaegeuk Kim <jaegeuk@kernel.org>2023-04-10 20:00:31 +0200
commit68f0453dabdb99e76f75ce52ce40bc4bc71389a8 (patch)
treeb30d2b51eb32dcba02eb4f48ca427ed435ed2099 /lib/fault-inject-usercopy.c
parentf2fs: use common implementation of file type (diff)
downloadlinux-68f0453dabdb99e76f75ce52ce40bc4bc71389a8.tar.xz
linux-68f0453dabdb99e76f75ce52ce40bc4bc71389a8.zip
f2fs: use f2fs_hw_is_readonly() instead of bdev_read_only()
f2fs has supported multi-device feature, to check devices' rw status, it should use f2fs_hw_is_readonly() rather than bdev_read_only(), fix it. Meanwhile, it removes f2fs_hw_is_readonly() check condition in: - f2fs_write_checkpoint() - f2fs_convert_inline_inode() As it has checked f2fs_readonly() condition, and if f2fs' devices were readonly, f2fs_readonly() must be true. Signed-off-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'lib/fault-inject-usercopy.c')
0 files changed, 0 insertions, 0 deletions