]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: encode the rtbitmap in big endian format
authorDarrick J. Wong <djwong@kernel.org>
Mon, 4 Nov 2024 04:19:23 +0000 (20:19 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 5 Nov 2024 21:38:41 +0000 (13:38 -0800)
commiteba42c2c53c8b8905307b702c93dffef0719a896
tree0b7c1e6aa3b1e5eb4e60f23c75f703a416edbf22
parent118895aa9513412b9077a8cae0bc63df8956f9b2
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