diff options
| author | Eric Biggers <ebiggers@kernel.org> | 2026-02-17 17:06:29 -0800 |
|---|---|---|
| committer | Eric Biggers <ebiggers@kernel.org> | 2026-02-17 23:11:36 -0800 |
| commit | 78cdb14893614dc46a06fe075abf19e0d8eddc66 (patch) | |
| tree | a842a94877ca5472dbf4c733f7aa7b507500dff1 /fs | |
| parent | 079220c56f83b8abaf74724903c52cbad06d7163 (diff) | |
f2fs: make f2fs_verify_cluster() partially large-folio-aware
f2fs_verify_cluster() is the only remaining caller of the
non-large-folio-aware function fsverity_verify_page(). To unblock the
removal of that function, change f2fs_verify_cluster() to verify the
entire folio of each page and mark it up-to-date.
Note that this doesn't actually make f2fs_verify_cluster()
large-folio-aware, as it is still passed an array of pages. Currently,
it's never called with large folios.
Suggested-by: Matthew Wilcox <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20260218010630.7407-3-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/f2fs/compress.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c index 355762d11e25..8c76400ba631 100644 --- a/fs/f2fs/compress.c +++ b/fs/f2fs/compress.c @@ -1813,13 +1813,14 @@ static void f2fs_verify_cluster(struct work_struct *work) /* Verify, update, and unlock the decompressed pages. */ for (i = 0; i < dic->cluster_size; i++) { struct page *rpage = dic->rpages[i]; + struct folio *rfolio; if (!rpage) continue; - - if (fsverity_verify_page(dic->vi, rpage)) - SetPageUptodate(rpage); - unlock_page(rpage); + rfolio = page_folio(rpage); + if (fsverity_verify_folio(dic->vi, rfolio)) + folio_mark_uptodate(rfolio); + folio_unlock(rfolio); } f2fs_put_dic(dic, true); |
