From: Carlos Maiolino <cem@kernel.org>
To: jianyungao89@gmail.com
Cc: linux-kernel@vger.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>,
"open list:XFS FILESYSTEM" <linux-xfs@vger.kernel.org>
Subject: Re: [PATCH] xfs: fix wrong lookup direction in xfs_refcount_lookup_eq tracepoint
Date: Thu, 26 Nov 2026 08:35:28 +0100 [thread overview]
Message-ID: <awfhNT6uBBBmlkM6@cronus.toxiclabs.cc> (raw)
In-Reply-To: <20261126023419.5727-1-jianyungao89@gmail.com>
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
>
>
prev parent reply other threads:[~2026-11-26 7:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 2:34 jianyungao89
2026-11-26 7:35 ` Carlos Maiolino [this message]
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=awfhNT6uBBBmlkM6@cronus.toxiclabs.cc \
--to=cem@kernel.org \
--cc=alexjlzheng@tencent.com \
--cc=ast@kernel.org \
--cc=dchinner@redhat.com \
--cc=djwong@kernel.org \
--cc=ishiyama@hpc.is.uec.ac.jp \
--cc=jianyungao89@gmail.com \
--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®