diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2021-07-15 01:14:02 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2021-07-20 03:16:40 +0200 |
commit | 1ffc8f5f7751f91fe6af527d426a723231b741a6 (patch) | |
tree | 02e3f07ed17df44257f955532a668dd343406433 /fs/f2fs/segment.c | |
parent | f2fs: Revert "f2fs: Fix indefinite loop in f2fs_gc() v1" (diff) | |
download | linux-1ffc8f5f7751f91fe6af527d426a723231b741a6.tar.xz linux-1ffc8f5f7751f91fe6af527d426a723231b741a6.zip |
f2fs: let's keep writing IOs on SBI_NEED_FSCK
SBI_NEED_FSCK is an indicator that fsck.f2fs needs to be triggered, so it
is not fully critical to stop any IO writes. So, let's allow to write data
instead of reporting EIO forever given SBI_NEED_FSCK, but do keep OPU.
Fixes: 955772787667 ("f2fs: drop inplace IO if fs status is abnormal")
Cc: <stable@kernel.org> # v5.13+
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/segment.c')
-rw-r--r-- | fs/f2fs/segment.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 15cc89eef28d..f9b7fb785e1d 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c @@ -3563,7 +3563,7 @@ int f2fs_inplace_write_data(struct f2fs_io_info *fio) goto drop_bio; } - if (is_sbi_flag_set(sbi, SBI_NEED_FSCK) || f2fs_cp_error(sbi)) { + if (f2fs_cp_error(sbi)) { err = -EIO; goto drop_bio; } |