[PATCH] xfs: fix wrong lookup direction in xfs_refcount_lookup_eq tracepoint
From: jianyungao89
Date: Wed Nov 25 2026 - 21:34:43 EST
From: Jianyun Gao <jianyungao89@xxxxxxxxx>
The trace_xfs_refcount_lookup() call in xfs_refcount_lookup_eq() passes
XFS_LOOKUP_LE. But the actual btree lookup below uses XFS_LOOKUP_EQ,
so the trace record reports a mismatched lookup direction and misleads
debugging.
Fixes: 08daa3ccf541b8 ("xfs: add repair helpers for the reference count btree")
Signed-off-by: Jianyun Gao <jianyungao89@xxxxxxxxx>
---
fs/xfs/libxfs/xfs_refcount.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/xfs/libxfs/xfs_refcount.c b/fs/xfs/libxfs/xfs_refcount.c
index 75e469576a8b..6a15a1afed1a 100644
--- a/fs/xfs/libxfs/xfs_refcount.c
+++ b/fs/xfs/libxfs/xfs_refcount.c
@@ -96,7 +96,7 @@ xfs_refcount_lookup_eq(
{
trace_xfs_refcount_lookup(cur,
xfs_refcount_encode_startblock(bno, domain),
- XFS_LOOKUP_LE);
+ XFS_LOOKUP_EQ);
cur->bc_rec.rc.rc_startblock = bno;
cur->bc_rec.rc.rc_blockcount = 0;
cur->bc_rec.rc.rc_domain = domain;
--
2.34.1