]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iomap: remove iomap_file_buffered_write_punch_delalloc
authorChristoph Hellwig <hch@lst.de>
Tue, 8 Oct 2024 08:59:13 +0000 (10:59 +0200)
committerCarlos Maiolino <cem@kernel.org>
Tue, 15 Oct 2024 09:37:42 +0000 (11:37 +0200)
commitcaf0ea451d97c33c5bbaa0074dad33b0b2a4e649
treeac0827cd24112b1690be31172b1586559b9902b0
parentc0adf8c3a9bf33f1dd1bf950601380f46a3fcec3
iomap: remove iomap_file_buffered_write_punch_delalloc

Currently iomap_file_buffered_write_punch_delalloc can be called from
XFS either with the invalidate lock held or not.  To fix this while
keeping the locking in the file system and not the iomap library
code we'll need to life the locking up into the file system.

To prepare for that, open code iomap_file_buffered_write_punch_delalloc
in the only caller, and instead export iomap_write_delalloc_release.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Documentation/filesystems/iomap/operations.rst
fs/iomap/buffered-io.c
fs/xfs/xfs_iomap.c
include/linux/iomap.h