]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: remove xfs_rtb_to_rtxrem
authorChristoph Hellwig <hch@lst.de>
Mon, 21 Oct 2024 00:10:43 +0000 (17:10 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 31 Oct 2024 22:45:02 +0000 (15:45 -0700)
commit325a7bbff1cf4c90a3d98131056fc5ffa20b6cda
treeac4ba6c50c24983c82e8fbabc8a34f5e4d19ffbd
parentd9e765646569e16d5ca785c56d3883e5768517db
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