]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iomap: allow the file system to submit the writeback bios
authorChristoph Hellwig <hch@lst.de>
Thu, 6 Feb 2025 06:39:59 +0000 (07:39 +0100)
committerChristian Brauner <brauner@kernel.org>
Thu, 6 Feb 2025 12:02:13 +0000 (13:02 +0100)
commitc50105933f0c75aacc4f95c9bf36f7fbd9a83884
tree5030cf1e959c3efbb3c97858d6bd999665ffc23e
parent2014c95afecee3e76ca4a56956a936e23283f05b
iomap: allow the file system to submit the writeback bios

Change ->prepare_ioend to ->submit_ioend and require file systems that
implement it to submit the bio.  This is needed for file systems that
do their own work on the bios before submitting them to the block layer
like btrfs or zoned xfs.  To make this easier also pass the writeback
context to the method.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20250206064035.2323428-2-hch@lst.de
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Documentation/filesystems/iomap/operations.rst
fs/iomap/buffered-io.c
fs/xfs/xfs_aops.c
include/linux/iomap.h