Linux XFS filesystem development
 help / color / mirror / Atom feed
From: "Darrick J. Wong" <djwong@kernel.org>
To: Christoph Hellwig <hch@lst.de>
Cc: Anuj Gupta <anuj1072538@gmail.com>,
	cem@kernel.org, linux-xfs@vger.kernel.org
Subject: Re: [PATCH 2/7] xfs: port healthmon event list to list_head
Date: Mon, 31 Aug 2026 07:53:06 -0700	[thread overview]
Message-ID: <20260831145306.GF6072@frogsfrogsfrogs> (raw)
In-Reply-To: <20260831065841.GD24602@lst.de>

On Mon, Aug 31, 2026 at 08:58:41AM +0200, Christoph Hellwig wrote:
> On Thu, Aug 27, 2026 at 07:47:59AM -0700, Darrick J. Wong wrote:
> > On Thu, Aug 27, 2026 at 03:03:46PM +0530, Anuj Gupta wrote:
> > > > -	if (xfs_healthmon_merge_events(hm->last_event, &lost_event)) {
> > > > -		trace_xfs_healthmon_merge(hm, hm->last_event);
> > > > +	if (xfs_healthmon_merge_events(hm, &lost_event)) {
> > > > +		trace_xfs_healthmon_merge(hm, &lost_event);
> > > 
> > > This traces the lost_event now, but the merge updates existing tail
> > > event. Is the change in behaviour intentional?
> > > 
> > > >  	/* Try to merge with the newest event */
> > > > -	if (xfs_healthmon_merge_events(hm->last_event, template)) {
> > > > -		trace_xfs_healthmon_merge(hm, hm->last_event);
> > > > +	if (xfs_healthmon_merge_events(hm, template)) {
> > > > +		trace_xfs_healthmon_merge(hm, template);
> > > 
> > > Same: the merge updates the existing tail event, but this traces the
> > > incoming template/event. Before this patch, surviving post-merge tail
> > > was traced.
> > 
> > Oops, that should become list_last_entry() for both.
> 
> Maybe move the trace inside the helper to make it more
> clear?

Will do.

--D

  reply	other threads:[~2026-08-31 14:53 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-27  5:31 [PATCHSET v2 2/2] xfs: LLM-inspired bug fixes, part 8 Darrick J. Wong
2026-08-27  5:32 ` [PATCH 1/7] xfs: always set xfs_healthmon::first_event when inserting at front of list Darrick J. Wong
2026-08-31  6:54   ` Christoph Hellwig
2026-08-27  5:32 ` [PATCH 2/7] xfs: port healthmon event list to list_head Darrick J. Wong
2026-08-27  9:33   ` Anuj Gupta
2026-08-27 14:47     ` Darrick J. Wong
2026-08-31  6:58       ` Christoph Hellwig
2026-08-31 14:53         ` Darrick J. Wong [this message]
2026-08-31  6:58   ` Christoph Hellwig
2026-08-31 15:12     ` Darrick J. Wong
2026-08-27  5:33 ` [PATCH 3/7] xfs: check healthmon outbuffer space correctly Darrick J. Wong
2026-08-31  6:59   ` Christoph Hellwig
2026-08-27  5:33 ` [PATCH 4/7] xfs: merge healthmon insert/push helpers Darrick J. Wong
2026-08-31  6:59   ` Christoph Hellwig
2026-08-27  5:33 ` [PATCH 5/7] xfs: bump lost_prev_errors if we lose even the healthmon lost event Darrick J. Wong
2026-08-27  5:34 ` [PATCH 6/7] xfs: report nonexistent parents as a filesystem corruption Darrick J. Wong
2026-08-27  5:34 ` [PATCH 7/7] xfs: destroy seen inode bitmap when we fail to add a dirpath 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=20260831145306.GF6072@frogsfrogsfrogs \
    --to=djwong@kernel.org \
    --cc=anuj1072538@gmail.com \
    --cc=cem@kernel.org \
    --cc=hch@lst.de \
    --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