]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: remove xfs_rtb_to_rtxrem
authorChristoph Hellwig <hch@lst.de>
Fri, 30 Aug 2024 22:37:07 +0000 (15:37 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Sun, 1 Sep 2024 15:58:19 +0000 (08:58 -0700)
commitfa0fc38b255cc88aef31ff13b5593e27622204e1
tree6aa4e92140220a55e060c06b28e45834691328a6
parent9e9be9840fad01dec3ee958fc401c4863c360202
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>
fs/xfs/libxfs/xfs_rtbitmap.c
fs/xfs/libxfs/xfs_rtbitmap.h