]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: remove xfs_rtb_to_rtxrem
authorChristoph Hellwig <hch@lst.de>
Wed, 7 Aug 2024 23:01:58 +0000 (16:01 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Sat, 10 Aug 2024 06:54:46 +0000 (23:54 -0700)
commit370f46db258fc5d8001cbef0692772013dab53e9
tree368bf7ac785bd6ddb9aa18d0fd5e963ab8bee61b
parent2dd281b304db712d395b1b0c80927251b1eaecbe
xfs: remove xfs_rtb_to_rtxrem

Simplify the number of block number conversion helpers by removing
xfs_rtb_to_rtxrem.  Any recent compiler is smart enough to eliminate
the double divisions if using separate xfs_rtb_to_rtx and
xfs_rtb_to_rtxoff calls.

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>
libxfs/xfs_rtbitmap.c
libxfs/xfs_rtbitmap.h