summaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_format.h
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2022-09-21 09:50:02 -0700
committerDarrick J. Wong <djwong@kernel.org>2022-11-09 19:07:56 -0800
commit739c5e2f47e9434d5af59dd36e0d11ad8fea55a4 (patch)
tree6974a7c5a6606290ab44555f8ef80733bad55375 /fs/xfs/libxfs/xfs_format.h
parenta5145f77ddb467390cda03330c2f035cdcdd57de (diff)
xfs: use accessor functions for summary info wordsrefactor-rtbitmap-macros_2022-11-09
Create get and set functions for rtsummary words so that we can redefine the ondisk format with a specific endianness. Note that this requires the definition of a distinct type for ondisk summary info words so that the compiler can perform proper typechecking. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/libxfs/xfs_format.h')
-rw-r--r--fs/xfs/libxfs/xfs_format.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_format.h b/fs/xfs/libxfs/xfs_format.h
index a13d324143ba..5c514a22d501 100644
--- a/fs/xfs/libxfs/xfs_format.h
+++ b/fs/xfs/libxfs/xfs_format.h
@@ -726,6 +726,14 @@ union xfs_rtword_ondisk {
};
/*
+ * Realtime summary counts are accessed by the word, which is currently
+ * stored in host-endian format.
+ */
+union xfs_suminfo_ondisk {
+ __u32 raw;
+};
+
+/*
* XFS Timestamps
* ==============
*