summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2026-01-28 18:26:17 +0300
committerEric Biggers <ebiggers@kernel.org>2026-01-29 20:39:41 +0300
commitac09a30900d81ac10606f650e3c720cfafa37be0 (patch)
tree64b31d8d2de7f6d00d1e600a4c0f3708a749bd35 /include/linux
parent6f9fae2f738c41c22ee90778ff8fc069de379472 (diff)
downloadlinux-ac09a30900d81ac10606f650e3c720cfafa37be0.tar.xz
fsverity: pass struct file to ->write_merkle_tree_block
This will make an iomap implementation of the method easier. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Andrey Albershteyn <aalbersh@redhat.com> Reviewed-by: "Darrick J. Wong" <djwong@kernel.org> Acked-by: David Sterba <dsterba@suse.com> # btrfs Link: https://lore.kernel.org/r/20260128152630.627409-6-hch@lst.de Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/fsverity.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/fsverity.h b/include/linux/fsverity.h
index ea1ed2e6c2f9..ac5c98fd4602 100644
--- a/include/linux/fsverity.h
+++ b/include/linux/fsverity.h
@@ -114,9 +114,9 @@ struct fsverity_operations {
unsigned long num_ra_pages);
/**
- * Write a Merkle tree block to the given inode.
+ * Write a Merkle tree block to the given file.
*
- * @inode: the inode for which the Merkle tree is being built
+ * @file: the file for which the Merkle tree is being built
* @buf: the Merkle tree block to write
* @pos: the position of the block in the Merkle tree (in bytes)
* @size: the Merkle tree block size (in bytes)
@@ -126,7 +126,7 @@ struct fsverity_operations {
*
* Return: 0 on success, -errno on failure
*/
- int (*write_merkle_tree_block)(struct inode *inode, const void *buf,
+ int (*write_merkle_tree_block)(struct file *file, const void *buf,
u64 pos, unsigned int size);
};