From: Jaegeuk Kim Date: Thu, 12 Apr 2018 06:09:04 +0000 (-0700) Subject: f2fs: clear PageError on writepage X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0d05d5b2391a55f39b479aa8ddc098f3190219bb;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git f2fs: clear PageError on writepage This patch clears PageError in some pages tagged by read path, but when we write the pages with valid contents, writepage should clear the bit likewise ext4. Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index bd3409d3dfe3..48d36c31de00 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -1737,6 +1737,7 @@ got_it: goto out_writepage; set_page_writeback(page); + ClearPageError(page); f2fs_put_dnode(&dn); if (fio->need_lock == LOCK_REQ) f2fs_unlock_op(fio->sbi); @@ -1759,6 +1760,7 @@ got_it: goto out_writepage; set_page_writeback(page); + ClearPageError(page); /* LFS mode write path */ write_data_page(&dn, fio);