]> git.hungrycats.org Git - linux/commit
xfs: don't fail repairs on metadata files with no attr fork
authorDarrick J. Wong <djwong@kernel.org>
Thu, 17 Oct 2024 18:58:10 +0000 (11:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Nov 2024 01:02:41 +0000 (02:02 +0100)
commitd4bc8a902bd831a0d7d9d407e3fbc38a09603150
treeb3ef80f71de5cb86cda0d2978d3b5dd4e6b4a1c0
parenta8b155a2c30dc9a5ba837aa5fcba9a47cc031a9b
xfs: don't fail repairs on metadata files with no attr fork

commit af8512c5277d17aae09be5305daa9118d2fa8881 upstream.

Fix a minor bug where we fail repairs on metadata files that do not have
attr forks because xrep_metadata_inode_subtype doesn't filter ENOENT.

Cc: stable@vger.kernel.org # v6.8
Fixes: 5a8e07e799721b ("xfs: repair the inode core and forks of a metadata inode")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/scrub/repair.c