xfs: convert do_div calls to xfs_rtb_to_rtx helper calls
authorDarrick J. Wong <djwong@kernel.org>
Mon, 16 Oct 2023 16:37:47 +0000 (09:37 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 17 Oct 2023 23:25:55 +0000 (16:25 -0700)
commit055641248f649b52620a5fe8774bea253690e057
treef3079426c34852056cdb7b96435560e0188288eb
parent5dc3a80d46a450481df7f7e9fe673ba3eb4514c3
xfs: convert do_div calls to xfs_rtb_to_rtx helper calls

Convert these calls to use the helpers, and clean up all these places
where the same variable can have different units depending on where it
is in the function.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_rtbitmap.h
fs/xfs/scrub/rtbitmap.c
fs/xfs/xfs_bmap_util.c
fs/xfs/xfs_fsmap.c
fs/xfs/xfs_rtalloc.c