]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: encode the rtbitmap in big endian format
authorDarrick J. Wong <djwong@kernel.org>
Mon, 23 Sep 2024 20:41:27 +0000 (13:41 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 9 Oct 2024 13:55:40 +0000 (15:55 +0200)
commit5dde0a0cbbbccbbe7082f857bd6fbb3f5d2d8831
tree9088971cab18428d53ba5391283625f8b823e7aa
parent90941242497a048a33b32d75caf5538a76cddb1f
xfs: encode the rtbitmap in big endian format

Currently, the ondisk realtime bitmap file is accessed in units of
32-bit words.  There's no endian translation of the contents of this
file, which means that the Bad Things Happen(tm) if you go from (say)
x86 to powerpc.  Since we have a new feature flag, let's take the
opportunity to enforce an endianness on the file.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_format.h
fs/xfs/libxfs/xfs_rtbitmap.h