]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: undefine the sb_bad_features2 when metadir is enabled
authorDarrick J. Wong <djwong@kernel.org>
Wed, 25 Sep 2024 21:48:35 +0000 (14:48 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 2 Oct 2024 01:10:39 +0000 (18:10 -0700)
commit216b0962ac6ef55c74c6e072d3aa1c205ab1592c
tree24e6c6c4f451993f60c758825ffb141af351046f
parentf54e9904a236d6bab12cbfeaf9fff3fb820d6fdd
xfs: undefine the sb_bad_features2 when metadir is enabled

The metadir feature is a good opportunity to break from the past where
we had to do this strange dance with sb_bad_features2 due to a past bug
where the superblock was not kept aligned to a multiple of 8 bytes.

Therefore, stop this pretense when metadir is enabled.  We'll just set
the incore and ondisk fields to zero, thereby freeing up 4 bytes of
space in the superblock.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_format.h
fs/xfs/libxfs/xfs_sb.c
fs/xfs/scrub/agheader.c