summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-09-01 11:17:56 -0700
committerDarrick J. Wong <djwong@kernel.org>2021-12-15 17:29:16 -0800
commit81603d160bee4e13b11eafe7d72c0140ba50d1c5 (patch)
tree427c51a7e034985f0fe6d9801e709480a31cbbbc /fs/xfs/scrub
parentc5a74bf72498ab8cbb8da5c8a5f94b13d7160b88 (diff)
xfs: fix scrub tracepoints when inode-rooted btrees are involved
Fix a couple of minor mistakes in the scrub tracepoints that can manifest when inode-rooted btrees are enabled. The existing code worked fine for bmap btrees, but we should tighten the code up to be less sloppy. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/scrub')
-rw-r--r--fs/xfs/scrub/trace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/scrub/trace.h b/fs/xfs/scrub/trace.h
index 6f7487cbb6b6..c4545d7ff347 100644
--- a/fs/xfs/scrub/trace.h
+++ b/fs/xfs/scrub/trace.h
@@ -418,7 +418,7 @@ TRACE_EVENT(xchk_ifork_btree_op_error,
TP_fast_assign(
xfs_fsblock_t fsbno = xchk_btree_cur_fsbno(cur, level);
__entry->dev = sc->mp->m_super->s_dev;
- __entry->ino = sc->ip->i_ino;
+ __entry->ino = cur->bc_ino.ip->i_ino;
__entry->whichfork = cur->bc_ino.whichfork;
__entry->type = sc->sm->sm_type;
__entry->btnum = cur->bc_btnum;