summaryrefslogtreecommitdiff
path: root/fs/xfs
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2024-09-10 07:39:06 +0300
committerChristian Brauner <brauner@kernel.org>2024-09-10 12:14:15 +0300
commit492f53758fad4fde3e9a98696780f8b53f87cdae (patch)
tree6c5735d9529bac636d2a4a5cf17de71f43acaee5 /fs/xfs
parent11596dc3dfae572cc267dda2dc4dab9ae34668f3 (diff)
downloadlinux-492f53758fad4fde3e9a98696780f8b53f87cdae.tar.xz
iomap: pass the iomap to the punch callback
XFS will need to look at the flags in the iomap structure, so pass it down all the way to the callback. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20240910043949.3481298-5-hch@lst.de Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/xfs_iomap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/xfs_iomap.c b/fs/xfs/xfs_iomap.c
index 47b5c8358825..695e5bee776f 100644
--- a/fs/xfs/xfs_iomap.c
+++ b/fs/xfs/xfs_iomap.c
@@ -1212,7 +1212,8 @@ static int
xfs_buffered_write_delalloc_punch(
struct inode *inode,
loff_t offset,
- loff_t length)
+ loff_t length,
+ struct iomap *iomap)
{
xfs_bmap_punch_delalloc_range(XFS_I(inode), offset, offset + length);
return 0;