]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mm/memory_hotplug.c: remove unnecesary check from register_page_bootmem_info_section()
authorOscar Salvador <osalvador@techadventures.net>
Thu, 1 Feb 2018 00:17:14 +0000 (16:17 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 1 Feb 2018 01:18:37 +0000 (17:18 -0800)
commitdc88c88904b8c5eb749874aecc278146b6ae02f3
tree811f04874b2cad17a2cc1bbf55224a7b7b3cb6f1
parentd6cb41cc44c63492702281b1d329955ca767d399
mm/memory_hotplug.c: remove unnecesary check from register_page_bootmem_info_section()

When we call register_page_bootmem_info_section() having
CONFIG_SPARSEMEM_VMEMMAP enabled, we check if the pfn is valid.

This check is redundant as we already checked this in
register_page_bootmem_info_node() before calling
register_page_bootmem_info_section(), so let's get rid of it.

Link: http://lkml.kernel.org/r/20171205143422.GA31458@techadventures.net
Signed-off-by: Oscar Salvador <osalvador@techadventures.net>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory_hotplug.c