mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
f2fs: skip stop_checkpoint for user data writes
We can give another chance to write user data, which can resolve generic/441. Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
@@ -110,7 +110,8 @@ static void f2fs_write_end_io(struct bio *bio)
|
|||||||
|
|
||||||
if (unlikely(bio->bi_error)) {
|
if (unlikely(bio->bi_error)) {
|
||||||
set_bit(AS_EIO, &page->mapping->flags);
|
set_bit(AS_EIO, &page->mapping->flags);
|
||||||
f2fs_stop_checkpoint(sbi, true);
|
if (type == F2FS_WB_CP_DATA)
|
||||||
|
f2fs_stop_checkpoint(sbi, true);
|
||||||
}
|
}
|
||||||
dec_page_count(sbi, type);
|
dec_page_count(sbi, type);
|
||||||
clear_cold_data(page);
|
clear_cold_data(page);
|
||||||
|
|||||||
Reference in New Issue
Block a user