]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: refactor xfs_reflink_find_shared
authorChristoph Hellwig <hch@lst.de>
Thu, 21 Nov 2024 00:20:54 +0000 (16:20 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 23 Dec 2024 21:06:12 +0000 (13:06 -0800)
commit4e87047539c7d695571173ad71471b2ac5b8e7e2
tree20db120a9fd172f87792425d98207040c82055c6
parentf0415af60f482a2192065be8b334b409495ca8a3
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