Home
last modified time | relevance | path

Searched hist:b27340a5bda4e35453d186e25622bacc3cf595c2 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/mm/
H A Dmemory_hotplug.cdiff b27340a5bda4e35453d186e25622bacc3cf595c2 Tue Mar 22 16:47:22 CDT 2022 Miaohe Lin <linmiaohe@huawei.com> mm/memory_hotplug: clean up try_offline_node

We can use helper macro node_spanned_pages to check whether node spans
pages. And we can change the parameter of check_cpu_on_node to nid as
that's what it really cares. Thus we can further get rid of the local
variable pgdat and improve the readability a bit.

Link: https://lkml.kernel.org/r/20220207133643.23427-4-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>