summaryrefslogtreecommitdiff
tag namerefactor-rt-unit-conversions-6.7_2023-10-19 (7f7372b3ea9df45f9632e1c329656eae7540f344)
tag date2023-10-19 09:02:25 -0700
tagged byDarrick J. Wong <djwong@kernel.org>
tagged objectcommit ef5a83b7e5...
xfs: refactor rt extent unit conversions [v1.1]
This series replaces all the open-coded integer division and multiplication conversions between rt blocks and rt extents with calls to static inline helpers. Having cleaned all that up, the helpers are augmented to skip the expensive operations in favor of bit shifts and masking if the rt extent size is a power of two. v1.1: various cleanups suggested by hch With a bit of luck, this should all go splendidly. Signed-off-by: Darrick J. Wong <djwong@kernel.org> -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQ2qTKExjcn+O1o2YRKO3ySh0YRpgUCZTFTEQAKCRBKO3ySh0YR pn8VAPwIqtQs6t19YAuIPy+Iwo0xls+G/XWTD+l+rWurtJBGKwD/csGP7Bt0w71i UzJ+VhyFUacV4MJdyGCrkGi0tuwUjQU= =zyjM -----END PGP SIGNATURE-----