mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Hildenbrand <david@redhat.com>
To: Haifeng Xu <haifeng.xu@shopee.com>
Cc: osalvador@suse.de, rppt@kernel.org, mhocko@kernel.org,
	akpm@linux-foundation.org, linux-mm@kvack.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] mm/memory_hotplug: remove reset_node_managed_pages() in hotadd_init_pgdat()
Date: Fri, 2 Jun 2023 13:49:33 +0200	[thread overview]
Message-ID: <f125f0db-30fe-5452-4669-3e48f7856569@redhat.com> (raw)
In-Reply-To: <20230601162626.1030-1-haifeng.xu@shopee.com>

On 01.06.23 18:26, Haifeng Xu wrote:
> managed pages has already been set to 0 in free_area_init_core_hotplug(),

"via zone_init_internals() on each zone"

> so it's pointless to reset again.
> 
> Signed-off-by: Haifeng Xu <haifeng.xu@shopee.com>
> ---
>   mm/memory_hotplug.c | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c
> index 8e0fa209d533..65e385f34679 100644
> --- a/mm/memory_hotplug.c
> +++ b/mm/memory_hotplug.c
> @@ -1210,7 +1210,6 @@ static pg_data_t __ref *hotadd_init_pgdat(int nid)
>   	 * online_pages() and offline_pages().
>   	 * TODO: should be in free_area_init_core_hotplug?
>   	 */
> -	reset_node_managed_pages(pgdat);
>   	reset_node_present_pages(pgdat);
>   
>   	return pgdat;

With that, reset_node_managed_pages() no longer needs to be exposed 
outside of mm/memblock.c

Can you unexport that function as well?

-- 
Thanks,

David / dhildenb


  reply	other threads:[~2023-06-02 11:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-01 16:26 Haifeng Xu
2023-06-02 11:49 ` David Hildenbrand [this message]
2023-06-07  2:45   ` [PATCH v2 " Haifeng Xu
2023-06-07 10:27     ` Michal Hocko
2023-06-07 11:23     ` Mike Rapoport
2023-06-07 11:37     ` David Hildenbrand

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=f125f0db-30fe-5452-4669-3e48f7856569@redhat.com \
    --to=david@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=haifeng.xu@shopee.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mhocko@kernel.org \
    --cc=osalvador@suse.de \
    --cc=rppt@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®