Re: [PATCH v6 05/22] fsverity: hoist pagecache_read from f2fs/ext4 to fsverity

Eric Biggers
2026-04-01T23:44:59Z

On Tue, Mar 31, 2026 at 11:28:06PM +0200, Andrey Albershteyn wrote:
> This is the same function to read from pageache. XFS will also need
> this, so move this to core fsverity.
>
> Reviewed-by: Darrick J. Wong <djwong@kernel.org>
> Reviewed-by: Christoph Hellwig <hch@lst.de>
> Signed-off-by: Andrey Albershteyn <aalbersh@kernel.org>

Acked-by: Eric Biggers <ebiggers@kernel.org>

Would be worth mentioning that the ext4 and f2fs copies of this function
had diverged slightly, though. This patch takes ext4's implementation
of doing it folio-by-folio, which seems like the right choice.

- Eric