* [PATCH] xfs: fix wrong lookup direction in xfs_refcount_lookup_eq tracepoint
@ 2026-11-26 2:34 jianyungao89
2026-11-26 7:35 ` Carlos Maiolino
0 siblings, 1 reply; 2+ messages in thread
From: jianyungao89 @ 2026-11-26 2:34 UTC (permalink / raw)
To: linux-kernel
Cc: Jianyun Gao, Carlos Maiolino, Darrick J. Wong, Eric Sandeen,
Alexei Starovoitov, Yuzuki Ishiyama, Jinliang Zheng,
Dave Chinner, open list:XFS FILESYSTEM
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] xfs: fix wrong lookup direction in xfs_refcount_lookup_eq tracepoint
2026-11-26 2:34 [PATCH] xfs: fix wrong lookup direction in xfs_refcount_lookup_eq tracepoint jianyungao89
@ 2026-11-26 7:35 ` Carlos Maiolino
0 siblings, 0 replies; 2+ messages in thread
From: Carlos Maiolino @ 2026-11-26 7:35 UTC (permalink / raw)
To: jianyungao89
Cc: linux-kernel, Darrick J. Wong, Eric Sandeen, Alexei Starovoitov,
Yuzuki Ishiyama, Jinliang Zheng, Dave Chinner,
open list:XFS FILESYSTEM
On Thu, Nov 26, 2026 at 10:34:01AM +0800, jianyungao89@gmail.com wrote:
> 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;
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
> --
> 2.34.1
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-26 7:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-26 2:34 [PATCH] xfs: fix wrong lookup direction in xfs_refcount_lookup_eq tracepoint jianyungao89
2026-11-26 7:35 ` Carlos Maiolino
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®