6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Darrick J. Wong commit b339cc253019518c61b8b150fb7ea727fdae59f4 upstream. Some LLM reports that xchk_dir_parent_pointer really ought to report xattr corruption errors as XFAIL (cross-referencing failed) when a directory scrub tries to find the parent pointer for a dirent name. Let's do that. Cc: stable@vger.kernel.org # v6.10 Fixes: 61b3f0df5c2358 ("xfs: check dirents have parent pointers") Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig Signed-off-by: Carlos Maiolino Signed-off-by: Greg Kroah-Hartman --- fs/xfs/scrub/dir.c | 2 ++ 1 file changed, 2 insertions(+) --- a/fs/xfs/scrub/dir.c +++ b/fs/xfs/scrub/dir.c @@ -155,6 +155,8 @@ xchk_dir_parent_pointer( &sd->pptr_args); if (error == -ENOATTR) xchk_fblock_xref_set_corrupt(sc, XFS_DATA_FORK, 0); + else + xchk_fblock_xref_process_error(sc, XFS_DATA_FORK, 0, &error); return 0; }