diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-04-12 08:09:04 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-05-02 23:30:58 +0200 |
commit | 17c500350b3e1a1430cbcc7efb54eb859446fc8a (patch) | |
tree | 976a2d1090bed05d84929b3e81fc989c23798104 /fs/f2fs/data.c | |
parent | f2fs: check cap_resource only for data blocks (diff) | |
download | linux-17c500350b3e1a1430cbcc7efb54eb859446fc8a.tar.xz linux-17c500350b3e1a1430cbcc7efb54eb859446fc8a.zip |
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 <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r-- | fs/f2fs/data.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 0f652b05decc..5477fc09c3cd 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -1735,6 +1735,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); @@ -1757,6 +1758,7 @@ got_it: goto out_writepage; set_page_writeback(page); + ClearPageError(page); /* LFS mode write path */ write_data_page(&dn, fio); |