[f2fs-dev] [PATCH v4 1/3] f2fs: remove unnecessary ClearPageUptodate in f2fs_verify_cluster()

Eric Biggers via Linux-f2fs-devel
2026-02-18T01:07:39Z

Remove the unnecessary clearing of PG_uptodate. It's guaranteed to
already be clear.

Suggested-by: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
---
fs/f2fs/compress.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c
index 006a80acd1de..355762d11e25 100644
--- a/fs/f2fs/compress.c
+++ b/fs/f2fs/compress.c
@@ -1817,12 +1817,10 @@ static void f2fs_verify_cluster(struct work_struct *work)
if (!rpage)
continue;

if (fsverity_verify_page(dic->vi, rpage))
SetPageUptodate(rpage);
- else
- ClearPageUptodate(rpage);
unlock_page(rpage);
}

f2fs_put_dic(dic, true);
}