From: John Garry <john.g.garry@oracle.com>
To: Christoph Hellwig <hch@infradead.org>, alexjlzheng@gmail.com
Cc: cem@kernel.org, linux-xfs@vger.kernel.org,
linux-kernel@vger.kernel.org,
Jinliang Zheng <alexjlzheng@tencent.com>
Subject: Re: [PATCH] xfs: fix confused tracepoints in xfs_reflink_end_atomic_cow()
Date: Mon, 24 Nov 2025 10:57:24 +0000 [thread overview]
Message-ID: <93b2420b-0bd8-4591-83eb-8976afec4550@oracle.com> (raw)
In-Reply-To: <aSQmomhODBHTip8j@infradead.org>
On 24/11/2025 09:34, Christoph Hellwig wrote:
> On Fri, Nov 21, 2025 at 07:56:56PM +0800, alexjlzheng@gmail.com wrote:
>> From: Jinliang Zheng <alexjlzheng@tencent.com>
>>
>> The commit b1e09178b73a ("xfs: commit CoW-based atomic writes atomically")
>> introduced xfs_reflink_end_atomic_cow() for atomic CoW-based writes, but
>> it used the same tracepoint as xfs_reflink_end_cow(), making trace logs
>> ambiguous.
>>
>> This patch adds two new tracepoints trace_xfs_reflink_end_atomic_cow() and
>> trace_xfs_reflink_end_atomic_cow_error() to distinguish them.
>
> Confused sounds a bit strong,
Yeah, maybe "ambiguous" could be a better word.
FWIW,
Reviewed-by: John Garry <john.g.garry@oracle.com>
> but otherwise this looks good:
>
> Reviewed-by: Christoph Hellwig <hch@lst.de>
>
> Semi-related: back when this code was added I asked why we're not
> using the transaction / defer ops chaining even for normale reflink
> completions, as it should be just as efficient and that way we have
> less code to maintain and less diverging code paths. Or am I missing
> something?
Commit d6f215f35963 might be able to explain that.
next prev parent reply other threads:[~2025-11-24 10:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-21 11:56 [PATCH] xfs: fix confused tracepoints in xfs_reflink_end_atomic_cow() alexjlzheng
2025-11-24 9:34 ` Christoph Hellwig
2025-11-24 10:57 ` John Garry [this message]
2025-11-24 14:04 ` Christoph Hellwig
2025-11-24 14:25 ` John Garry
2025-11-25 2:18 ` Darrick J. Wong
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=93b2420b-0bd8-4591-83eb-8976afec4550@oracle.com \
--to=john.g.garry@oracle.com \
--cc=alexjlzheng@gmail.com \
--cc=alexjlzheng@tencent.com \
--cc=cem@kernel.org \
--cc=hch@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-xfs@vger.kernel.org \
/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