]> Gentwo Git Trees - linux/.git/commit
xfs: always warn about deprecated mount options
authorDarrick J. Wong <djwong@kernel.org>
Tue, 21 Oct 2025 18:30:12 +0000 (11:30 -0700)
committerCarlos Maiolino <cem@kernel.org>
Wed, 22 Oct 2025 08:04:39 +0000 (10:04 +0200)
commit630785bfbe12c3ee3ebccd8b530a98d632b7e39d
treee834b69fd9b6d4a44ab0f72bce52e9743217a202
parentbd721ec7dedcc24ced51559e42a39140b59dfd08
xfs: always warn about deprecated mount options

The deprecation of the 'attr2' mount option in 6.18 wasn't entirely
successful because nobody noticed that the kernel never printed a
warning about attr2 being set in fstab if the only xfs filesystem is the
root fs; the initramfs mounts the root fs with no mount options; and the
init scripts only conveyed the fstab options by remounting the root fs.

Fix this by making it complain all the time.

Cc: stable@vger.kernel.org # v5.13
Fixes: 92cf7d36384b99 ("xfs: Skip repetitive warnings about mount options")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_super.c