]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: use accessor functions for bitmap words
authorDarrick J. Wong <djwong@kernel.org>
Thu, 15 Feb 2024 08:25:47 +0000 (09:25 +0100)
committerCarlos Maiolino <cem@kernel.org>
Thu, 15 Feb 2024 11:56:43 +0000 (12:56 +0100)
commitf4a0432b7e3730f9380afff6873ddcec82547de9
treeafe6e138f510af5da66d067b722e468c5595d46e
parent3d763f980fbb6d0e2d9371e2b2903b9fb77cb8e3
xfs: use accessor functions for bitmap words

Source kernel commit: 97e993830a1cdd86ad7d207308b9f55a00660edd

Create get and set functions for rtbitmap 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 rtbitmap words so that the
compiler can perform proper typechecking as we go back and forth.

In the upcoming rtgroups feature, we're going to fix the problem that
rtwords are written in host endian order, which means we'll need the
distinct rtword/rtword_raw types.

Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
libxfs/xfs_format.h
libxfs/xfs_rtbitmap.c
libxfs/xfs_rtbitmap.h