xfs: factor out a xfs_last_rt_bmblock helper
authorChristoph Hellwig <hch@lst.de>
Fri, 30 Aug 2024 22:36:58 +0000 (15:36 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Sun, 1 Sep 2024 15:58:19 +0000 (08:58 -0700)
commit266e78aec4b9bac0400b09603a2bd24bea7268df
treee953c6125be2ac148c9e3832b233743b56595868
parent7996f10ce6cc6a9f4c49368209ab74631c765bbf
xfs: factor out a xfs_last_rt_bmblock helper

Add helper to calculate the last currently used rt bitmap block to
better structure the growfs code and prepare for future changes to it.

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_rtalloc.c