xfs: refactor xfs_reflink_end_cow_extent()
authorJohn Garry <john.g.garry@oracle.com>
Wed, 7 May 2025 21:18:28 +0000 (14:18 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 7 May 2025 21:25:31 +0000 (14:25 -0700)
commit514df14fae97c91521ef53faf3a386e26afb8bee
tree1fa507f79969c04bcef125c753752c43e4327a1c
parent6baf4cc47a741024d37e6149d5d035d3fc9ed1fe
xfs: refactor xfs_reflink_end_cow_extent()

Refactor xfs_reflink_end_cow_extent() into separate parts which process
the CoW range and commit the transaction.

This refactoring will be used in future for when it is required to commit
a range of extents as a single transaction, similar to how it was done
pre-commit d6f215f359637.

Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: John Garry <john.g.garry@oracle.com>
fs/xfs/xfs_reflink.c