FAILED: patch "[PATCH] xfs: always report scrub errors in tracepoints" failed to apply to 6.1-stable tree
Subsystems (2)
[email protected]
maintainerThe patch below does not apply to the 6.1-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.1.y
git checkout FETCH_HEAD
git cherry-pick -x 1ccc8f553d885d49c1bfe141ea1f331511940b3a
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026110408-clay-heroics-73a0@gregkh' --subject-prefix 'PATCH 6.1.y' 'HEAD^..'
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 1ccc8f553d885d49c1bfe141ea1f331511940b3a Mon Sep 17 00:00:00 2001
From: "Darrick J. Wong" <[email protected]>
Date: Mon, 12 Oct 2026 23:08:04 -0700
Subject: [PATCH] xfs: always report scrub errors in tracepoints
LOLLM complains that the error processing functions in scrub will sometimes zero out *error before recording a tracepoint. This makes diagnosing problems harder, so let's fix that.
fs/xfs/scrub/btree.c +7 -1
@@ -46,8 +46,14 @@ __xchk_btree_process_error(case -ENODATA :/* Note the badness but don't abort. */ sc->sm->sm_flags |= errflag; +if (cur->bc_ops->type ==XFS_BTREE_TYPE_INODE ) +trace_xchk_ifork_btree_op_error (sc, cur, level, + *error, ret_ip); +else +trace_xchk_btree_op_error (sc, cur, level, + *error, ret_ip); *error =0 ; - fallthrough; +break ;default :if (cur->bc_ops->type ==XFS_BTREE_TYPE_INODE ) trace_xchk_ifork_btree_op_error(sc, cur, level,
fs/xfs/scrub/common.c +5 -2
@@ -107,8 +107,9 @@ __xchk_process_error(case -ENODATA :/* Note the badness but don't abort. */ sc->sm->sm_flags |= errflag; +trace_xchk_op_error (sc, agno, bno, *error, ret_ip); *error =0 ; - fallthrough; +break ;default :trace_xchk_op_error (sc, agno, bno, *error, ret_ip);break ;
@@ -183,8 +184,10 @@ __xchk_fblock_process_error(case -ENODATA :/* Note the badness but don't abort. */ sc->sm->sm_flags |= errflag; +trace_xchk_file_op_error (sc, whichfork, offset, *error, + ret_ip); *error =0 ; - fallthrough; +break ;default :trace_xchk_file_op_error (sc, whichfork, offset, *error, ret_ip);
fs/xfs/scrub/dabtree.c +5 -1
@@ -49,8 +49,12 @@ xchk_da_process_error(case -ENODATA :/* Note the badness but don't abort. */ sc->sm->sm_flags |=XFS_SCRUB_OFLAG_CORRUPT ; +trace_xchk_file_op_error (sc, ds->dargs.whichfork, +xfs_dir2_da_to_db (ds->dargs.geo, + ds->state->path.blk[level].blkno), + *error, __return_address); *error =0 ; - fallthrough; +break ;default : trace_xchk_file_op_error(sc, ds->dargs.whichfork, xfs_dir2_da_to_db(ds->dargs.geo,
Sasha Levin
maintainerPATCH 1/1 xfs: always report scrub errors in tracepoints
From: "Darrick J. Wong" <[email protected]>
[ Upstream commit 1ccc8f553d885d49c1bfe141ea1f331511940b3a ]
LOLLM complains that the error processing functions in scrub will sometimes zero out *error before recording a tracepoint. This makes diagnosing problems harder, so let's fix that.
--- fs/xfs/scrub/btree.c | 8 +++++++- fs/xfs/scrub/common.c | 7 +++++-- fs/xfs/scrub/dabtree.c | 6 +++++- 3 files changed, 17 insertions(+), 4 deletions(-)
fs/xfs/scrub/btree.c +7 -1
@@ -45,8 +45,14 @@ __xchk_btree_process_error(case -ENODATA :/* Note the badness but don't abort. */ sc->sm->sm_flags |= errflag; +if (cur->bc_flags &XFS_BTREE_ROOT_IN_INODE ) +trace_xchk_ifork_btree_op_error (sc, cur, level, + *error, ret_ip); +else +trace_xchk_btree_op_error (sc, cur, level, + *error, ret_ip); *error =0 ; - fallthrough; +break ;default :if (cur->bc_flags &XFS_BTREE_ROOT_IN_INODE ) trace_xchk_ifork_btree_op_error(sc, cur, level,
fs/xfs/scrub/common.c +5 -2
@@ -86,8 +86,9 @@ __xchk_process_error(case -ENODATA :/* Note the badness but don't abort. */ sc->sm->sm_flags |= errflag; +trace_xchk_op_error (sc, agno, bno, *error, ret_ip); *error =0 ; - fallthrough; +break ;default :trace_xchk_op_error (sc, agno, bno, *error, ret_ip);
@@ -141,8 +142,10 @@ __xchk_fblock_process_error(case -ENODATA :/* Note the badness but don't abort. */ sc->sm->sm_flags |= errflag; +trace_xchk_file_op_error (sc, whichfork, offset, *error, + ret_ip); *error =0 ; - fallthrough; +break ;default :trace_xchk_file_op_error (sc, whichfork, offset, *error, ret_ip);
fs/xfs/scrub/dabtree.c +5 -1
@@ -48,8 +48,12 @@ xchk_da_process_error(case -ENODATA :/* Note the badness but don't abort. */ sc->sm->sm_flags |=XFS_SCRUB_OFLAG_CORRUPT ; +trace_xchk_file_op_error (sc, ds->dargs.whichfork, +xfs_dir2_da_to_db (ds->dargs.geo, + ds->state->path.blk[level].blkno), + *error, __return_address); *error =0 ; - fallthrough; +break ;default : trace_xchk_file_op_error(sc, ds->dargs.whichfork, xfs_dir2_da_to_db(ds->dargs.geo,
Signature · 1 line
2.53.0