xfs: create a helper to convert extlen to rtextlen
authorDarrick J. Wong <djwong@kernel.org>
Mon, 16 Oct 2023 16:35:23 +0000 (09:35 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 17 Oct 2023 23:24:22 +0000 (16:24 -0700)
commit2c2b981b737a519907429f62148bbd9e40e01132
tree1927c4278c463d432f3c2ea4c955496cf0a96568
parent68db60bf01c131c09bbe35adf43bd957a4c124bc
xfs: create a helper to convert extlen to rtextlen

Create a helper to compute the realtime extent (xfs_rtxlen_t) from an
extent length (xfs_extlen_t) value.

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