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=f8385a150801a3aaf9592e310c5bf9f21ecbea0c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git f2fs: clear PageError on writepage Cherry-pick from origin/upstream-f2fs-stable-linux-4.14.y: commit 0d05d5b2391a ("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. Change-Id: I2b089495a565e6ae78e16fec4b81eb2306fcf3c7 Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 072a1cf1ee13..96ebf8da4a22 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -1738,6 +1738,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); @@ -1760,6 +1761,7 @@ got_it: goto out_writepage; set_page_writeback(page); + ClearPageError(page); /* LFS mode write path */ write_data_page(&dn, fio);