public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: David Sterba <dsterba@suse.cz>
To: Naohiro Aota <Naohiro.Aota@wdc.com>
Cc: David Sterba <dsterba@suse.com>,
	"linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: Re: [PATCH 3/3] btrfs: reformat comments in acls_after_inode_item()
Date: Fri, 25 Apr 2025 13:31:58 +0200	[thread overview]
Message-ID: <20250425113158.GB31681@suse.cz> (raw)
In-Reply-To: <D9EHQPSBBS4G.2B8ALJ1KNJMET@wdc.com>

On Thu, Apr 24, 2025 at 01:52:20AM +0000, Naohiro Aota wrote:
> On Thu Apr 24, 2025 at 1:53 AM JST, David Sterba wrote:
> > Signed-off-by: David Sterba <dsterba@suse.com>
> > ---
> >  fs/btrfs/inode.c | 37 +++++++++++++++++++++++--------------
> >  1 file changed, 23 insertions(+), 14 deletions(-)
> >
> > diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
> > index e3bbe348ac91e2..e18967a14d6419 100644
> > --- a/fs/btrfs/inode.c
> > +++ b/fs/btrfs/inode.c
> > @@ -3721,10 +3721,14 @@ int btrfs_orphan_cleanup(struct btrfs_root *root)
> >  }
> >  
> >  /*
> > - * very simple check to peek ahead in the leaf looking for xattrs.  If we
> > - * don't find any xattrs, we know there can't be any acls.
> > + * Look ahead in the leaf for xattrs. If we don't find any then we know there
> > + * can be any ACLs.
> 
> can't be ?

Fixed, thanks.

> >   *
> > - * slot is the slot the inode is in, objectid is the objectid of the inode
> > + * @leaf:       the eb leaf where to search
> > + * @slot:       the slot the inode is in
> > + * @objectid:   the objectid of the inode
> > + *
> > + * Retrun true if there is a xattr, false otherwise.
> 
> nit: typo: Return
> Also, should it be "an xattr" ?

I don't know, I've changed it to 'xattr/ACL' without a/an, the reason is
to make it clear that the xattr implies potential ACL.

  reply	other threads:[~2025-04-25 11:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-23 16:53 [PATCH 0/3] Bool return cleanups David Sterba
2025-04-23 16:53 ` [PATCH 1/3] btrfs: trivial conversion to return bool instead of int David Sterba
2025-04-23 16:53 ` [PATCH 2/3] btrfs: switch int dev_replace_is_ongoing variables/parameters to bool David Sterba
2025-04-23 16:53 ` [PATCH 3/3] btrfs: reformat comments in acls_after_inode_item() David Sterba
2025-04-24  1:52   ` Naohiro Aota
2025-04-25 11:31     ` David Sterba [this message]
2025-04-24  1:54 ` [PATCH 0/3] Bool return cleanups Naohiro Aota

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=20250425113158.GB31681@suse.cz \
    --to=dsterba@suse.cz \
    --cc=Naohiro.Aota@wdc.com \
    --cc=dsterba@suse.com \
    --cc=linux-btrfs@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