diff options
author | Darrick J. Wong <djwong@kernel.org> | 2023-10-16 09:51:16 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2023-10-18 16:53:00 -0700 |
commit | 663b8db7b0256b81152b2f786e45ecf12bdf265f (patch) | |
tree | eef619bc233dbe4eb8d796a0fca9a5573210faf3 /fs/xfs/libxfs/xfs_format.h | |
parent | bd85af280de66a946022775a876edf0c553e3f35 (diff) |
xfs: use accessor functions for summary info wordsrefactor-rtbitmap-accessors-6.7_2023-10-19
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>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/libxfs/xfs_format.h')
-rw-r--r-- | fs/xfs/libxfs/xfs_format.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_format.h b/fs/xfs/libxfs/xfs_format.h index 2af891d5d171..9a88aba1589f 100644 --- a/fs/xfs/libxfs/xfs_format.h +++ b/fs/xfs/libxfs/xfs_format.h @@ -699,6 +699,14 @@ union xfs_rtword_raw { }; /* + * Realtime summary counts are accessed by the word, which is currently + * stored in host-endian format. + */ +union xfs_suminfo_raw { + __u32 old; +}; + +/* * XFS Timestamps * ============== * |