xfs: convert the rtbitmap block and bit macros to static inline functions
authorDarrick J. Wong <djwong@kernel.org>
Mon, 16 Oct 2023 16:44:13 +0000 (09:44 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 17 Oct 2023 23:26:25 +0000 (16:26 -0700)
commit90d98a6ada1da0f8797ff3f5adafd175dd8c0a81
treeeb049ef082910ac663b2be0ed7794a59d7723b58
parentef5a83b7e597038d1c734ddb4bc00638082c2bf1
xfs: convert the rtbitmap block and bit macros to static inline functions

Replace these macros with typechecked helper functions.  Eventually
we're going to add more logic to the helpers and it'll be easier if we
don't have to macro it up.

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