f2fs: clear PageError on writepage
authorJaegeuk Kim <jaegeuk@kernel.org>
Thu, 12 Apr 2018 06:09:04 +0000 (23:09 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sun, 22 Apr 2018 22:49:15 +0000 (16:49 -0600)
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 <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c

index bd3409d3dfe33b19852cee63bb8303b7d6fb27bf..48d36c31de00323b91645ce8c702c69330f7fcb9 100644 (file)
@@ -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);