linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Yinan Zhang <zhangyinan2019@email.szu.edu.cn>
To: akpm@linux-foundation.org
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org,
	Yinan Zhang <zhangyinan2019@email.szu.edu.cn>
Subject: [PATCH] mm: fix a comment
Date: Fri,  8 Oct 2021 22:03:12 +0800	[thread overview]
Message-ID: <20211008140312.6492-1-zhangyinan2019@email.szu.edu.cn> (raw)

I have noticed that the previous macro is #ifndef CONFIG_SPARSEMEM.
I think the comment of #else should be CONFIG_SPARSEMEM.

Signed-off-by: Yinan Zhang <zhangyinan2019@email.szu.edu.cn>
---
 mm/page_ext.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/page_ext.c b/mm/page_ext.c
index dfb91653d..106079e67 100644
--- a/mm/page_ext.c
+++ b/mm/page_ext.c
@@ -201,7 +201,7 @@ void __init page_ext_init_flatmem(void)
 	panic("Out of memory");
 }
 
-#else /* CONFIG_FLATMEM */
+#else /* CONFIG_SPARSEMEM */
 
 struct page_ext *lookup_page_ext(const struct page *page)
 {
-- 
2.23.0





             reply	other threads:[~2021-10-08 14:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-08 14:03 Yinan Zhang [this message]
2021-10-08 14:10 ` [PATCH] mm: fix a comment Vlastimil Babka

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=20211008140312.6492-1-zhangyinan2019@email.szu.edu.cn \
    --to=zhangyinan2019@email.szu.edu.cn \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.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;
as well as URLs for NNTP newsgroup(s).