diff options
| author | Andrey Albershteyn <aalbersh@kernel.org> | 2026-05-20 15:37:07 +0300 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-06-05 14:36:22 +0300 |
| commit | 36a36c4cac914510123071fb58270f6380faed1b (patch) | |
| tree | bc87f8bbd45c175aa2e55a353b5e1ef342f1ff91 /include/linux | |
| parent | 1d140731753a277be36637300a0f3faa396edec1 (diff) | |
| download | linux-36a36c4cac914510123071fb58270f6380faed1b.tar.xz | |
iomap: introduce iomap_fsverity_write() for writing fsverity metadata
This is just a wrapper around iomap_file_buffered_write() to create
necessary iterator over metadata.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Andrey Albershteyn <aalbersh@kernel.org>
Link: https://patch.msgid.link/20260520123722.405752-10-aalbersh@kernel.org
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/iomap.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/iomap.h b/include/linux/iomap.h index 1be2e16b696a..3582ed1fe236 100644 --- a/include/linux/iomap.h +++ b/include/linux/iomap.h @@ -353,6 +353,9 @@ static inline bool iomap_want_unshare_iter(const struct iomap_iter *iter) ssize_t iomap_file_buffered_write(struct kiocb *iocb, struct iov_iter *from, const struct iomap_ops *ops, const struct iomap_write_ops *write_ops, void *private); +int iomap_fsverity_write(struct file *file, loff_t pos, size_t length, + const void *buf, const struct iomap_ops *ops, + const struct iomap_write_ops *write_ops); void iomap_read_folio(const struct iomap_ops *ops, struct iomap_read_folio_ctx *ctx, void *private); void iomap_readahead(const struct iomap_ops *ops, |
