Skip to content

Commit 830b4ab

Browse files
author
Chandan Babu R
committed
Merge tag 'refactor-rtbitmap-accessors-6.7_2023-10-19' of https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux into xfs-6.7-mergeA
xfs: refactor rtbitmap/summary accessors [v1.2] Since the rtbitmap and rtsummary accessor functions have proven more controversial than the rest of the macro refactoring, split the patchset into two to make review easier. v1.1: various cleanups suggested by hch v1.2: rework the accessor functions to reduce the amount of cursor tracking required, and create explicit bitmap/summary logging functions 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-accessors-6.7_2023-10-19' of https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux: xfs: use accessor functions for summary info words xfs: create helpers for rtsummary block/wordcount computations xfs: use accessor functions for bitmap words xfs: create a helper to handle logging parts of rt bitmap/summary blocks
2 parents 035e32f + 663b8db commit 830b4ab

File tree

8 files changed

+223
-125
lines changed

8 files changed

+223
-125
lines changed

fs/xfs/libxfs/xfs_format.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,22 @@ struct xfs_agfl {
690690
ASSERT(xfs_daddr_to_agno(mp, d) == \
691691
xfs_daddr_to_agno(mp, (d) + (len) - 1)))
692692

693+
/*
694+
* Realtime bitmap information is accessed by the word, which is currently
695+
* stored in host-endian format.
696+
*/
697+
union xfs_rtword_raw {
698+
__u32 old;
699+
};
700+
701+
/*
702+
* Realtime summary counts are accessed by the word, which is currently
703+
* stored in host-endian format.
704+
*/
705+
union xfs_suminfo_raw {
706+
__u32 old;
707+
};
708+
693709
/*
694710
* XFS Timestamps
695711
* ==============

0 commit comments

Comments
 (0)