From: Harry Yoo <harry@kernel.org>
To: Li Peng <pengli01@cestc.cn>
Cc: vbabka <vbabka@kernel.org>, hannes <hannes@cmpxchg.org>,
surenb <surenb@google.com>, mhocko <mhocko@suse.com>,
"brendan.jackman" <brendan.jackman@linux.dev>,
ziy <ziy@nvidia.com>, akpm <akpm@linux-foundation.org>,
linux-mm <linux-mm@kvack.org>
Subject: Re: [PATCH] mm: page_alloc: use correct names in comments
Date: Fri, 4 Dec 2026 15:14:54 +0000 [thread overview]
Message-ID: <axLX8GsmtEv5yOjq@thinkstation> (raw)
In-Reply-To: <202612041514435383505@cestc.cn>
On Fri, Dec 04, 2026 at 03:14:43PM +0800, Li Peng wrote:
> __alloc_pages() should be __alloc_frozen_pages_noprof().
> preferred_zone should be preferred_zoneref.
>
> Signed-off-by: Li Peng <pengli01@cestc.cn>
>
> ---
> mm/page_alloc.h | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/mm/page_alloc.h b/mm/page_alloc.h
> index 917653ae14a3..eecf8430a9e7 100644
> --- a/mm/page_alloc.h
> +++ b/mm/page_alloc.h
> @@ -69,10 +69,10 @@
> * family of functions.
> *
> * nodemask, migratetype and highest_zoneidx are initialized only once in
> - * __alloc_pages() and then never change.
> + * __alloc_frozen_pages_noprof() and then never change.
> *
> - * zonelist, preferred_zone and highest_zoneidx are set first in
> - * __alloc_pages() for the fast path, and might be later changed
> + * zonelist, preferred_zoneref and highest_zoneidx are set first in
> + * __alloc_frozen_pages_noprof() for the fast path, and might be later changed
I'm not sure this improves the documentation.
> * in __alloc_pages_slowpath(). All other functions pass the whole structure
> * by a const pointer.
> */
> --
> 2.53.0
>
--
Cheers,
Harry / Hyeonggon
prev parent reply other threads:[~2026-12-04 15:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 7:14 [PATCH] mm: page_alloc: use correct names in comments Li Peng
2026-12-04 11:32 ` sashiko-bot
2026-12-04 15:14 ` Harry Yoo [this message]
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=axLX8GsmtEv5yOjq@thinkstation \
--to=harry@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=brendan.jackman@linux.dev \
--cc=hannes@cmpxchg.org \
--cc=linux-mm@kvack.org \
--cc=mhocko@suse.com \
--cc=pengli01@cestc.cn \
--cc=surenb@google.com \
--cc=vbabka@kernel.org \
--cc=ziy@nvidia.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