]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: remove xfs_rtb_to_rtxrem
authorChristoph Hellwig <hch@lst.de>
Wed, 3 Jul 2024 21:21:59 +0000 (14:21 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 16 Jul 2024 22:49:14 +0000 (15:49 -0700)
commit148bde4cfd1b19247a90d6dfc760d39a3498729d
tree298e57153301b408bd8d520eae2580c431b25971
parentdc5748b07c7d30f72fbb93a4af0bfad41532c942
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