Skip to content

Commit ffc3ea4

Browse files
author
Darrick J. Wong
committed
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: 92219c2 ("xfs: convert btree cursor inode-private member names") Signed-off-by: "Darrick J. Wong" <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
1 parent 6d7b4bc commit ffc3ea4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/xfs/scrub/trace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ TRACE_EVENT(xchk_ifork_btree_op_error,
605605
TP_fast_assign(
606606
xfs_fsblock_t fsbno = xchk_btree_cur_fsbno(cur, level);
607607
__entry->dev = sc->mp->m_super->s_dev;
608-
__entry->ino = sc->ip->i_ino;
608+
__entry->ino = cur->bc_ino.ip->i_ino;
609609
__entry->whichfork = cur->bc_ino.whichfork;
610610
__entry->type = sc->sm->sm_type;
611611
__assign_str(name);

0 commit comments

Comments
 (0)