summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/data.c
diff options
context:
space:
mode:
authorChao Yu <chao@kernel.org>2022-12-15 07:05:06 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2023-01-07 00:13:41 +0100
commit8358014d6be8f3cb507d247d6a623e5961f848d0 (patch)
tree7065115a8fd2c406594e15873718cbe2ca6a970f /fs/f2fs/data.c
parentf2fs: add missing doc for fault injection sysfs (diff)
downloadlinux-8358014d6be8f3cb507d247d6a623e5961f848d0.tar.xz
linux-8358014d6be8f3cb507d247d6a623e5961f848d0.zip
f2fs: avoid to check PG_error flag
After below changes: commit 14db0b3c7b83 ("fscrypt: stop using PG_error to track error status") commit 98dc08bae678 ("fsverity: stop using PG_error to track error status") There is no place in f2fs we will set PG_error flag in page, let's remove other PG_error usage in f2fs, as a step towards freeing the PG_error flag for other uses. Cc: Eric Biggers <ebiggers@kernel.org> Signed-off-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r--fs/f2fs/data.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index 60fb44a200c1..af906ed6d53d 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -2701,7 +2701,6 @@ 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);
@@ -2737,7 +2736,6 @@ got_it:
goto out_writepage;
set_page_writeback(page);
- ClearPageError(page);
if (fio->compr_blocks && fio->old_blkaddr == COMPRESS_ADDR)
f2fs_i_compr_blocks_update(inode, fio->compr_blocks - 1, false);