]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: split xfs_trim_rtdev_extents
authorChristoph Hellwig <hch@lst.de>
Tue, 15 Oct 2024 19:38:50 +0000 (12:38 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 5 Nov 2024 21:36:08 +0000 (13:36 -0800)
commit3e11b6055b397d0813c9ace246f7ad227e1e48aa
tree1b201760f5cc0ea93e8878846c9a8f9dd4955d34
parent8f2087c4357af5f62f8dee659d611c840ce03054
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