Darrick J. Wong 1f1397b721 xfs: don't allocate into the data fork for an unshare request
For an unshare request, we only have to take action if the data fork has
a shared mapping.  We don't care if someone else set up a cow operation.
If we find nothing in the data fork, return a hole to avoid allocating
space.

Note that fallocate will replace the delalloc reservation with an
unwritten extent anyway, so this has no user-visible effects outside of
avoiding unnecessary updates.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
2023-05-02 09:14:51 +10:00
..
2023-04-11 19:05:19 -07:00
2022-01-15 16:30:29 +02:00
2021-10-22 16:00:31 -07:00
2023-01-19 09:24:28 +01:00
2023-02-28 16:08:30 -08:00
2023-02-20 11:53:11 -08:00
2022-10-10 20:32:10 -07:00
2022-05-11 17:01:22 +10:00
2021-08-19 10:07:14 -07:00
2023-02-10 09:06:06 -08:00