Commit 68f0453
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>1 parent 0c9f452 commit 68f0453
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
715 | 715 | | |
716 | 716 | | |
717 | 717 | | |
718 | | - | |
| 718 | + | |
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3274 | 3274 | | |
3275 | 3275 | | |
3276 | 3276 | | |
3277 | | - | |
| 3277 | + | |
3278 | 3278 | | |
3279 | 3279 | | |
3280 | 3280 | | |
| |||
3850 | 3850 | | |
3851 | 3851 | | |
3852 | 3852 | | |
3853 | | - | |
| 3853 | + | |
3854 | 3854 | | |
3855 | 3855 | | |
3856 | 3856 | | |
| |||
0 commit comments