f2fs: clear PageError on writepage
Jaegeuk Kim
maintainerPATCH 1/1 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.
Signed-off-by Jaegeuk Kim <[email protected]>
--- fs/f2fs/data.c | 2 ++ 1 file changed, 2 insertions(+)
fs/f2fs/data.c +2 -0
@@ -1675,6 +1675,7 @@ int do_write_data_page(struct f2fs_io_info *fio) goto out_writepage;set_page_writeback (page); +ClearPageError (page);f2fs_put_dnode (&dn);if (fio->need_lock ==LOCK_REQ )f2fs_unlock_op (fio->sbi);
@@ -1697,6 +1698,7 @@ int do_write_data_page(struct f2fs_io_info *fio) goto out_writepage;set_page_writeback (page); +ClearPageError (page);/* LFS mode write path */ write_data_page (&dn, fio);
Signature · 1 line
2.15.0.531.g2ccb3012c9-goog
Quoted 5 lines · Jaegeuk Kim
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.
Signed-off-by Jaegeuk Kim <[email protected]>
Reviewed-by Chao Yu <[email protected]>
Thanks,