xfs: cleanup xfs_getfsmap_rtdev_rtbitmap
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)
commitd6d5c90adaccefd99c761cfdc9cf11720e2d8508
treefcaf629e8316752a109ec8d49500ff86daad28b1
parent9154b5008c03117b4fd83cc6639fb7e94f158e90
xfs: cleanup xfs_getfsmap_rtdev_rtbitmap

Use mp->m_sb.sb_rblocks to calculate the end instead of sb_rextents that
needs a conversion, use consistent names to xfs_rtblock_t types, and
only calculated them by the time they are needed.  Remove the pointless
"high" local variable that only has a single user.

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