iomap: pass the length of the dirty region to ->map_blocks
authorChristoph Hellwig <hch@lst.de>
Thu, 7 Dec 2023 07:27:10 +0000 (08:27 +0100)
committerChristian Brauner <brauner@kernel.org>
Thu, 1 Feb 2024 13:20:13 +0000 (14:20 +0100)
commit19871b5c7a003946d3cd4209a348ab7c0df5dbad
tree2413d150b64c6bc23c7ffcc44949573733036fda
parent30deff8531f469453ccc0981f14eceb0a2ea68d6
iomap: pass the length of the dirty region to ->map_blocks

Let the file system know how much dirty data exists at the passed
in offset.  This allows file systems to allocate the right amount
of space that actually is written back if they can't eagerly
convert (e.g. because they don't support unwritten extents).

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20231207072710.176093-15-hch@lst.de
Signed-off-by: Christian Brauner <brauner@kernel.org>
block/fops.c
fs/gfs2/bmap.c
fs/iomap/buffered-io.c
fs/xfs/xfs_aops.c
fs/zonefs/file.c
include/linux/iomap.h