]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: refactor xfs_reflink_find_shared
authorDarrick J. Wong <djwong@kernel.org>
Tue, 15 Oct 2024 19:40:21 +0000 (12:40 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 1 Nov 2024 20:47:09 +0000 (13:47 -0700)
commitda99f18a9ea68a630e9eb31256810b4ad46da23a
tree026ab40675ea1b496372f5280c855473cf594567
parent1d40e38798c00fe51fb5f3ebbfb3729ea6533393
xfs: refactor xfs_reflink_find_shared

Move lookup of the perag structure from the callers into the helpers,
and return the offset into the extent of the shared region instead of
the block number that needs post-processing.  This prepares the
callsites for the creation of an rt-specific variant in the next patch.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
[djwong: port to the middle of the rtreflink series for cleanliness]
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/xfs_reflink.c
fs/xfs/xfs_reflink.h