summaryrefslogtreecommitdiff
path: root/fs/f2fs/data.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2017-12-31 16:26:38 -0800
committerJaegeuk Kim <jaegeuk@kernel.org>2018-01-02 19:27:31 -0800
commitb1ca321d1cd8f09965e7306ccf3998c7eb7e7b19 (patch)
tree702ec1ff00db63f8be5a6ab16824e70d471c57de /fs/f2fs/data.c
parentd620439f25fad30e89cde2e10fbd26a1ec8d47a0 (diff)
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>
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r--fs/f2fs/data.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index 7aca6ccd01f6..449b0aaa3905 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);