All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Wilcox <willy@infradead.org>
To: Mateusz Guzik <mjguzik@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	mm-commits@vger.kernel.org, Liam.Howlett@oracle.com
Subject: Re: + maple_tree-shrink-struct-maple_tree-from-24-to-16-bytes-on-lp64.patch added to mm-unstable branch
Date: Tue, 22 Aug 2023 20:01:10 +0100	[thread overview]
Message-ID: <ZOUF9ocK0b+ZIQpd@casper.infradead.org> (raw)
In-Reply-To: <CAGudoHEBb4qDyyTKAtUx8-vAd312FO9vH4bnTBPHuHttV_2HiQ@mail.gmail.com>

On Tue, Aug 22, 2023 at 08:57:46PM +0200, Mateusz Guzik wrote:
> On 8/22/23, Matthew Wilcox <willy@infradead.org> wrote:
> > On Tue, Aug 22, 2023 at 11:44:54AM -0700, Andrew Morton wrote:
> >> ------------------------------------------------------
> >> From: Mateusz Guzik <mjguzik@gmail.com>
> >> Subject: maple_tree: shrink struct maple_tree from 24 to 16 bytes on LP64
> >> Date: Tue, 22 Aug 2023 00:51:45 +0200
> >>
> >> by plugging a padding hole.
> >>
> >> Link:
> >> https://lkml.kernel.org/r/20230821225145.2169848-1-mjguzik@gmail.com
> >> Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
> >> Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>
> >> Cc: Matthew Wilcox <willy@infradead.org>
> >> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> >> ---
> >
> > Could we perhaps amend the commit log?
> >
> > Subject: maple_tree: Shrink struct maple_tree
> >
> > Pack the members of struct maple_tree to avoid holes on 64-bit.
> > The size shrinks from 24 to 16 bytes which will save eight bytes
> > in every structure which embeds it.
> >
> > Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
> >
> 
> Is this kind of descriptiveness expected? I am only a sojourner here,
> but even then I suspect I'm going to run into a bunch of other
> trivialities of this sort.

Generally, yes, descriptiveness is expected.  I acknowledge it can
be hard to think of what to say, particularly for a one-line patch.

Specifically, the term "LP64" is rarely used; 64-bit or CONFIG_64BIT is
more common.  It's also uncommon to continue a sentence fragment from
the Subject line into the body.

> fwiw I would avoid the term 'pack' as it suggests the attribute
> "packed", perhaps:
> 
> > Reorder the members of struct maple_tree to avoid holes on 64-bit.
> > The size shrinks from 24 to 16 bytes which will save eight bytes
> > in every structure which embeds it.

Works for me!

  reply	other threads:[~2023-08-22 19:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-22 18:44 + maple_tree-shrink-struct-maple_tree-from-24-to-16-bytes-on-lp64.patch added to mm-unstable branch Andrew Morton
2023-08-22 18:49 ` Matthew Wilcox
2023-08-22 18:57   ` Mateusz Guzik
2023-08-22 19:01     ` Matthew Wilcox [this message]
2023-08-22 19:33   ` Andrew Morton

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=ZOUF9ocK0b+ZIQpd@casper.infradead.org \
    --to=willy@infradead.org \
    --cc=Liam.Howlett@oracle.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mjguzik@gmail.com \
    --cc=mm-commits@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.