]> www.infradead.org Git - users/hch/xfs.git/commitdiff
xfs: fix scrub tracepoints when inode-rooted btrees are involved
authorDarrick J. Wong <djwong@kernel.org>
Wed, 29 May 2024 04:12:40 +0000 (21:12 -0700)
committerChristoph Hellwig <hch@lst.de>
Mon, 12 Aug 2024 11:53:00 +0000 (13:53 +0200)
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.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/scrub/trace.h

index d4d0e8ceeeb7b8ebb4a9b9975a34d2ebde514ad4..577c91637ec379c6b38a3157e8f6ded3924d202b 100644 (file)
@@ -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);