]> www.infradead.org Git - users/dwmw2/linux.git/commit
xfs: split xfs_trim_rtdev_extents
authorChristoph Hellwig <hch@lst.de>
Mon, 4 Nov 2024 04:19:09 +0000 (20:19 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 5 Nov 2024 21:38:36 +0000 (13:38 -0800)
commitc8edf1cbef7ee63dc48bc3e19b818bbc9cfe0d73
tree1b201760f5cc0ea93e8878846c9a8f9dd4955d34
parentd6d5c90adaccefd99c761cfdc9cf11720e2d8508
xfs: split xfs_trim_rtdev_extents

Split xfs_trim_rtdev_extents into two parts to prepare for reusing the
main validation also for RT group aware file systems.

Use the fully features xfs_daddr_to_rtb helper to convert from a daddr
to a xfs_rtblock_t to prepare for segmented addressing in RT groups.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/xfs_discard.c