diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 7aca6ccd01f6ae6af309c47c8deb6a017cc21b3d..449b0aaa3905f2a8829cc997e6af83e752d16c40 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -111,7 +111,8 @@ static void f2fs_write_end_io(struct bio *bio) if (unlikely(bio->bi_status)) { mapping_set_error(page->mapping, -EIO); - f2fs_stop_checkpoint(sbi, true); + if (type == F2FS_WB_CP_DATA) + f2fs_stop_checkpoint(sbi, true); } dec_page_count(sbi, type); clear_cold_data(page);