From: Andrew Morton <akpm@linux-foundation.org>
To: Ryan Roberts <ryan.roberts@arm.com>
Cc: Baolin Wang <baolin.wang@linux.alibaba.com>,
Hugh Dickins <hughd@google.com>,
"Matthew Wilcox (Oracle)" <willy@infradead.org>,
David Hildenbrand <david@redhat.com>,
Barry Song <baohua@kernel.org>, Lance Yang <ioworker0@gmail.com>,
Gavin Shan <gshan@redhat.com>,
linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: [PATCH v3 2/2] mm: Tidy up shmem mTHP controls and stats
Date: Wed, 4 Sep 2024 13:46:31 -0700 [thread overview]
Message-ID: <20240904134631.4dd7a0bde6439aad3a275002@linux-foundation.org> (raw)
In-Reply-To: <f7ced14c-8bc5-405f-bee7-94f63980f525@arm.com>
On Wed, 4 Sep 2024 11:47:29 +0100 Ryan Roberts <ryan.roberts@arm.com> wrote:
> >> +static struct attribute *any_ctrl_attrs[] = {
> >> + NULL,
> >> +};
> >> +
> >> +static const struct attribute_group any_ctrl_attr_grp = {
> >> + .attrs = any_ctrl_attrs,
> >> };
> >
> > I wonder why adding a NULL group?
Was this review comment addressed?
>
> ...
>
> >> + &shmem_alloc_attr.attr,
> >> + &shmem_fallback_attr.attr,
> >> + &shmem_fallback_charge_attr.attr,
> >> +#endif
> >> + NULL,
> >> +};
> >> +
> >> +static struct attribute_group file_stats_attr_grp = {
> >> + .name = "stats",
> >> + .attrs = file_stats_attrs,
> >> +};
> >> +
> >> +static struct attribute *any_stats_attrs[] = {
> >> +#ifdef CONFIG_SHMEM
> >> + &swpout_attr.attr,
> >> + &swpout_fallback_attr.attr,
> >> +#endif
> >
> > Sorry I did not point it out in early version. I think file pages and shmem can
> > also be split, while 'split_deferred' is only for anonymous page. So I think the
> > any_stats_attrs should be:
> > static struct attribute *any_stats_attrs[] = {
> > #ifdef CONFIG_SHMEM
> > &swpout_attr.attr,
> > &swpout_fallback_attr.attr,
> > #endif
> > &split_attr.attr,
> > &split_failed_attr.attr,
> > NULL,
> > };
>
> Could you please squash the following into this patch, which is already in
> mm-unstable? I'm hoping this sufficient and I don't need to send a whole new
> revision since there are changes on top of this in mm-unstable, which makes
> things tricky.
I did that. Please send along a Signoff and a changelog?
next prev parent reply other threads:[~2024-09-04 20:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20240808111849.651867-1-ryan.roberts@arm.com>
[not found] ` <20240808111849.651867-3-ryan.roberts@arm.com>
2024-08-08 22:11 ` Barry Song
2024-08-09 7:46 ` Ryan Roberts
2024-08-09 8:31 ` Baolin Wang
2024-09-02 9:58 ` Ryan Roberts
2024-09-03 1:15 ` Baolin Wang
2024-09-03 1:53 ` Barry Song
2024-09-04 10:18 ` Ryan Roberts
2024-09-04 10:47 ` Ryan Roberts
2024-09-04 20:46 ` Andrew Morton [this message]
2024-09-05 7:29 ` Ryan Roberts
2024-09-05 0:45 ` Baolin Wang
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=20240904134631.4dd7a0bde6439aad3a275002@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=baohua@kernel.org \
--cc=baolin.wang@linux.alibaba.com \
--cc=david@redhat.com \
--cc=gshan@redhat.com \
--cc=hughd@google.com \
--cc=ioworker0@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=ryan.roberts@arm.com \
--cc=willy@infradead.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