]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: remove xfs_rtb_to_rtxrem
authorChristoph Hellwig <hch@lst.de>
Tue, 15 Oct 2024 19:43:41 +0000 (12:43 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 1 Nov 2024 20:44:39 +0000 (13:44 -0700)
commitf5897da4eb3cc76c032d1728b0e1de7258d2fdaa
treeac4ba6c50c24983c82e8fbabc8a34f5e4d19ffbd
parentce4a8cbbb6e6bf6d2bf0edb9185db835afbe2153
xfs: remove xfs_rtb_to_rtxrem

Source kernel commit: fa0fc38b255cc88aef31ff13b5593e27622204e1

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