xfs,iomap: move delalloc punching to iomap
authorDave Chinner <dchinner@redhat.com>
Wed, 23 Nov 2022 01:44:38 +0000 (12:44 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 23 Nov 2022 01:44:38 +0000 (12:44 +1100)
commit9c7babf94a0d686b552e53aded8d4703d1b8b92b
treed468b984eab6a7bc85a49d76c85e4d4592bfd5e8
parentb71f889c18ada210a97aa3eb5e00c0de552234c6
xfs,iomap: move delalloc punching to iomap

Because that's what Christoph wants for this error handling path
only XFS uses.

It requires a new iomap export for handling errors over delalloc
ranges. This is basically the XFS code as is stands, but even though
Christoph wants this as iomap funcitonality, we still have
to call it from the filesystem specific ->iomap_end callback, and
call into the iomap code with yet another filesystem specific
callback to punch the delalloc extent within the defined ranges.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
fs/iomap/buffered-io.c
fs/xfs/xfs_iomap.c
include/linux/iomap.h