iomap: don't bother unsharing delalloc extents
authorDarrick J. Wong <djwong@kernel.org>
Wed, 2 Oct 2024 15:00:40 +0000 (08:00 -0700)
committerChristian Brauner <brauner@kernel.org>
Thu, 3 Oct 2024 08:22:25 +0000 (10:22 +0200)
commitf7a4874d977bf4202ad575031222e78809a36292
tree593a9bfc2794405b87fbeebd3f83d66d00a2883c
parent1ca4169c391c370e0f3a92938df2862900575096
iomap: don't bother unsharing delalloc extents

If unshare encounters a delalloc reservation in the srcmap, that means
that the file range isn't shared because delalloc reservations cannot be
reflinked.  Therefore, don't try to unshare them.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/20241002150040.GB21853@frogsfrogsfrogs
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/iomap/buffered-io.c