public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Long Li <leo.lilong@huawei.com>
To: "Darrick J. Wong" <djwong@kernel.org>
Cc: <cem@kernel.org>, <linux-xfs@vger.kernel.org>,
	<david@fromorbit.com>, <yi.zhang@huawei.com>,
	<houtao1@huawei.com>, <yangerkun@huawei.com>,
	<lonuxli.64@gmail.com>
Subject: Re: [PATCH v2 3/4] xfs: factor out xfs_attr3_leaf_init
Date: Sat, 14 Mar 2026 10:47:27 +0800	[thread overview]
Message-ID: <abTMP-9JrsijFjTg@localhost.localdomain> (raw)
In-Reply-To: <20260313150417.GQ1770774@frogsfrogsfrogs>

On Fri, Mar 13, 2026 at 08:04:17AM -0700, Darrick J. Wong wrote:
> On Thu, Mar 12, 2026 at 04:57:59PM +0800, Long Li wrote:
> > Factor out wrapper xfs_attr3_leaf_init function, which exported for
> > external use.
> > 
> > Signed-off-by: Long Li <leo.lilong@huawei.com>
> > ---
> >  fs/xfs/libxfs/xfs_attr_leaf.c | 22 ++++++++++++++++++++++
> >  fs/xfs/libxfs/xfs_attr_leaf.h |  3 +++
> >  2 files changed, 25 insertions(+)
> > 
> > diff --git a/fs/xfs/libxfs/xfs_attr_leaf.c b/fs/xfs/libxfs/xfs_attr_leaf.c
> > index 47f48ae555c0..96a65141e812 100644
> > --- a/fs/xfs/libxfs/xfs_attr_leaf.c
> > +++ b/fs/xfs/libxfs/xfs_attr_leaf.c
> > @@ -1415,6 +1415,28 @@ xfs_attr3_leaf_create(
> >  	return 0;
> >  }
> >  
> > +/*
> > + * Create and initialize an empty attr leaf block at blkno, and attach the
> > + * buffer to tp.
> 
> Not sure why we "create and initialize" here -- there's already a block
> mapped at @blkno and we're rewriting it with a leaf header, right?
> 
> /*
>  * Reinitialize an existing attr fork block as an empty leaf, and
>  * attach the buffer to tp.
>  */
> 
> With that changed,
> Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
> 
> --D

Thank you for the review. I'll update the comment to use the clearer format
you suggested. and appreciate the guidance on improving the documentation
clarity.

Thanks,
Long Li


  reply	other threads:[~2026-03-14  2:51 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-12  8:57 [PATCH v2 0/4] xfs: close crash window in attr dabtree inactivation Long Li
2026-03-12  8:57 ` [PATCH v2 1/4] xfs: only assert new size for datafork during truncate extents Long Li
2026-03-12  8:57 ` [PATCH v2 2/4] xfs: factor out xfs_attr3_node_entry_remove Long Li
2026-03-13 15:01   ` Darrick J. Wong
2026-03-14  2:49     ` Long Li
2026-03-12  8:57 ` [PATCH v2 3/4] xfs: factor out xfs_attr3_leaf_init Long Li
2026-03-13 15:04   ` Darrick J. Wong
2026-03-14  2:47     ` Long Li [this message]
2026-03-12  8:58 ` [PATCH v2 4/4] xfs: close crash window in attr dabtree inactivation Long Li
2026-03-14  0:18   ` Darrick J. Wong
2026-03-16  4:56     ` Darrick J. Wong
2026-03-16  8:32       ` Long Li
2026-03-16 13:04         ` Long Li
2026-03-16 16:29         ` Darrick J. Wong
2026-03-17  1:38           ` Long Li

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=abTMP-9JrsijFjTg@localhost.localdomain \
    --to=leo.lilong@huawei.com \
    --cc=cem@kernel.org \
    --cc=david@fromorbit.com \
    --cc=djwong@kernel.org \
    --cc=houtao1@huawei.com \
    --cc=linux-xfs@vger.kernel.org \
    --cc=lonuxli.64@gmail.com \
    --cc=yangerkun@huawei.com \
    --cc=yi.zhang@huawei.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