Merge tag 'refactor-rtbitmap-macros-6.7_2023-10-19' of https://git.kernel.org/pub...
authorChandan Babu R <chandanbabu@kernel.org>
Mon, 23 Oct 2023 05:19:53 +0000 (10:49 +0530)
committerChandan Babu R <chandanbabu@kernel.org>
Mon, 23 Oct 2023 05:19:53 +0000 (10:49 +0530)
commit035e32f7524dd30f187ee23d2331832a61f3fc87
tree7cc7fd665529146765fd8fc1542537bd39c8da24
parent9d4ca5afa604d35c2e9caba0982a53ffe0fa4469
parentd0448fe76ac1a9ccbce574577a4c82246d17eec4
Merge tag 'refactor-rtbitmap-macros-6.7_2023-10-19' of https://git./linux/kernel/git/djwong/xfs-linux into xfs-6.7-mergeA

xfs: refactor rtbitmap/summary macros [v1.1]

In preparation for adding block headers and enforcing endian order in
rtbitmap and rtsummary blocks, replace open-coded geometry computations
and fugly macros with proper helper functions that can be typechecked.
Soon we'll be needing to add more complex logic to the helpers.

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>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
* tag 'refactor-rtbitmap-macros-6.7_2023-10-19' of https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux:
  xfs: create helpers for rtbitmap block/wordcount computations
  xfs: convert rt summary macros to helpers
  xfs: convert open-coded xfs_rtword_t pointer accesses to helper
  xfs: remove XFS_BLOCKWSIZE and XFS_BLOCKWMASK macros
  xfs: convert the rtbitmap block and bit macros to static inline functions