summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2026-01-28 18:26:18 +0300
committerEric Biggers <ebiggers@kernel.org>2026-01-29 20:39:41 +0300
commit821ddd25fbe88ea60e9c35cfb76c2ddeb1ffae26 (patch)
tree7ef1f85cb965a4c9fc9ee62d29dabdd87175c510 /include
parentac09a30900d81ac10606f650e3c720cfafa37be0 (diff)
downloadlinux-821ddd25fbe88ea60e9c35cfb76c2ddeb1ffae26.tar.xz
fsverity: start consolidating pagecache code
ext4 and f2fs are largely using the same code to read a page full of Merkle tree blocks from the page cache, and the upcoming xfs fsverity support would add another copy. Move the ext4 code to fs/verity/ and use it in f2fs as well. For f2fs this removes the previous f2fs-specific error injection, but otherwise the behavior remains unchanged. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Andrey Albershteyn <aalbersh@redhat.com> Reviewed-by: Jan Kara <jack@suse.cz> Reviewed-by: "Darrick J. Wong" <djwong@kernel.org> Link: https://lore.kernel.org/r/20260128152630.627409-7-hch@lst.de Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/fsverity.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/fsverity.h b/include/linux/fsverity.h
index ac5c98fd4602..8ddaa87fece3 100644
--- a/include/linux/fsverity.h
+++ b/include/linux/fsverity.h
@@ -309,4 +309,7 @@ static inline int fsverity_file_open(struct inode *inode, struct file *filp)
void fsverity_cleanup_inode(struct inode *inode);
+struct page *generic_read_merkle_tree_page(struct inode *inode, pgoff_t index,
+ unsigned long num_ra_pages);
+
#endif /* _LINUX_FSVERITY_H */