Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cfee78c6 authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

f2fs: skip stop_checkpoint for user data writes



We can give another chance to write user data, which can resolve
generic/441.

Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 29f0297f
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -111,6 +111,7 @@ static void f2fs_write_end_io(struct bio *bio, int err)


		if (unlikely(err)) {
		if (unlikely(err)) {
			set_bit(AS_EIO, &page->mapping->flags);
			set_bit(AS_EIO, &page->mapping->flags);
			if (type == F2FS_WB_CP_DATA)
				f2fs_stop_checkpoint(sbi, true);
				f2fs_stop_checkpoint(sbi, true);
		}
		}
		dec_page_count(sbi, type);
		dec_page_count(sbi, type);