summaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2024-12-02 10:57:32 -0800
committerDarrick J. Wong <djwong@kernel.org>2024-12-12 17:45:10 -0800
commitffc3ea4f3c1cc83a86b7497b0c4b0aee7de5480d (patch)
treeb0171f48aa0f376d0d3d28a39c85bfb390147fb2 /fs/xfs
parent6d7b4bc1c3e00b1a25b7a05141a64337b4629337 (diff)
downloadlinux-stable-ffc3ea4f3c1cc83a86b7497b0c4b0aee7de5480d.tar.gz
linux-stable-ffc3ea4f3c1cc83a86b7497b0c4b0aee7de5480d.tar.bz2
linux-stable-ffc3ea4f3c1cc83a86b7497b0c4b0aee7de5480d.zip
xfs: fix scrub tracepoints when inode-rooted btrees are involved
Fix a 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. Cc: <stable@vger.kernel.org> # v5.7 Fixes: 92219c292af8dd ("xfs: convert btree cursor inode-private member names") Signed-off-by: "Darrick J. Wong" <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs')
-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 9b38f5ad1eaf..d2ae7e93acb0 100644
--- a/fs/xfs/scrub/trace.h
+++ b/fs/xfs/scrub/trace.h
@@ -605,7 +605,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;
__assign_str(name);