From: jianyungao89@gmail.com
To: linux-kernel@vger.kernel.org
Cc: Jianyun Gao <jianyungao89@gmail.com>,
Carlos Maiolino <cem@kernel.org>,
"Darrick J. Wong" <djwong@kernel.org>,
Eric Sandeen <sandeen@redhat.com>,
Alexei Starovoitov <ast@kernel.org>,
Yuzuki Ishiyama <ishiyama@hpc.is.uec.ac.jp>,
Jinliang Zheng <alexjlzheng@tencent.com>,
Dave Chinner <dchinner@redhat.com>,
linux-xfs@vger.kernel.org (open list:XFS FILESYSTEM)
Subject: [PATCH] xfs: fix wrong lookup direction in xfs_refcount_lookup_eq tracepoint
Date: Thu, 26 Nov 2026 10:34:01 +0800 [thread overview]
Message-ID: <20261126023419.5727-1-jianyungao89@gmail.com> (raw)
From: Jianyun Gao <jianyungao89@gmail.com>
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@gmail.com>
---
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
next reply other threads:[~2026-11-26 2:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 2:34 jianyungao89 [this message]
2026-11-26 7:35 ` Carlos Maiolino
2026-11-26 13:49 ` Carlos Maiolino
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261126023419.5727-1-jianyungao89@gmail.com \
--to=jianyungao89@gmail.com \
--cc=alexjlzheng@tencent.com \
--cc=ast@kernel.org \
--cc=cem@kernel.org \
--cc=dchinner@redhat.com \
--cc=djwong@kernel.org \
--cc=ishiyama@hpc.is.uec.ac.jp \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-xfs@vger.kernel.org \
--cc=sandeen@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®