All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Li Peng" <pengli01@cestc.cn>
To: 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>
Cc: linux-mm <linux-mm@kvack.org>,  pengli01 <pengli01@cestc.cn>
Subject: [PATCH] mm: page_alloc: use correct names in comments
Date: Fri, 4 Dec 2026 15:14:43 +0800	[thread overview]
Message-ID: <202612041514435383505@cestc.cn> (raw)

__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
  * in __alloc_pages_slowpath(). All other functions pass the whole structure
  * by a const pointer.
  */
-- 
2.53.0


             reply	other threads:[~2026-12-04  7:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  7:14 Li Peng [this message]
2026-12-04 11:32 ` [PATCH] mm: page_alloc: use correct names in comments sashiko-bot
2026-12-04 15:14 ` Harry Yoo

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=202612041514435383505@cestc.cn \
    --to=pengli01@cestc.cn \
    --cc=akpm@linux-foundation.org \
    --cc=brendan.jackman@linux.dev \
    --cc=hannes@cmpxchg.org \
    --cc=linux-mm@kvack.org \
    --cc=mhocko@suse.com \
    --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 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.