From: Eric Biggers <ebiggers@kernel.org>
To: fsverity@lists.linux.dev
Cc: linux-f2fs-devel@lists.sourceforge.net,
linux-fsdevel@vger.kernel.org,
Linus Torvalds <torvalds@linux-foundation.org>,
Jaegeuk Kim <jaegeuk@kernel.org>, Chao Yu <chao@kernel.org>,
Matthew Wilcox <willy@infradead.org>,
Eric Biggers <ebiggers@kernel.org>
Subject: [PATCH v3 1/2] f2fs: make f2fs_verify_cluster() partially large-folio-aware
Date: Sat, 14 Feb 2026 20:28:05 -0800 [thread overview]
Message-ID: <20260215042806.13348-2-ebiggers@kernel.org> (raw)
In-Reply-To: <20260215042806.13348-1-ebiggers@kernel.org>
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.
In addition, remove the unnecessary clearing of the up-to-date flag.
It's guaranteed to already be clear.
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
---
fs/f2fs/compress.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c
index 006a80acd1de..8c76400ba631 100644
--- a/fs/f2fs/compress.c
+++ b/fs/f2fs/compress.c
@@ -1811,19 +1811,18 @@ static void f2fs_verify_cluster(struct work_struct *work)
int i;
/* 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);
- else
- ClearPageUptodate(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);
}
--
2.53.0
next prev parent reply other threads:[~2026-02-15 4:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-15 4:28 [PATCH v3 0/2] fsverity: remove fsverity_verify_page() Eric Biggers
2026-02-15 4:28 ` Eric Biggers [this message]
2026-02-17 6:28 ` [PATCH v3 1/2] f2fs: make f2fs_verify_cluster() partially large-folio-aware Christoph Hellwig
2026-02-15 4:28 ` [PATCH v3 2/2] fsverity: remove fsverity_verify_page() Eric Biggers
2026-02-17 6:29 ` Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260215042806.13348-2-ebiggers@kernel.org \
--to=ebiggers@kernel.org \
--cc=chao@kernel.org \
--cc=fsverity@lists.linux.dev \
--cc=jaegeuk@kernel.org \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=linux-fsdevel@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
--cc=willy@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox