mm: relax deferred struct page requirements
authorPavel Tatashin <[email protected]>
Thu, 1 Feb 2018 00:16:02 +0000 (16:16 -0800)
committerLinus Torvalds <[email protected]>
Thu, 1 Feb 2018 01:18:36 +0000 (17:18 -0800)
commit2e3ca40f03bb13709df40eff2f7fc157803fa5a3
treefb12c4706d0a134c16f39fe669ce2309b4179328
parenta85f878b443f8d2b91ba76f09da21ac0af22e07f
mm: relax deferred struct page requirements

There is no need to have ARCH_SUPPORTS_DEFERRED_STRUCT_PAGE_INIT, as all
the page initialization code is in common code.

Also, there is no need to depend on MEMORY_HOTPLUG, as initialization
code does not really use hotplug memory functionality.  So, we can
remove this requirement as well.

This patch allows to use deferred struct page initialization on all
platforms with memblock allocator.

Tested on x86, arm64, and sparc.  Also, verified that code compiles on
PPC with CONFIG_MEMORY_HOTPLUG disabled.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Pavel Tatashin <[email protected]>
Acked-by: Heiko Carstens <[email protected]> [s390]
Reviewed-by: Khalid Aziz <[email protected]>
Acked-by: Michael Ellerman <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Steven Sistare <[email protected]>
Cc: Daniel Jordan <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Kirill A. Shutemov <[email protected]>
Cc: Reza Arbab <[email protected]>
Cc: Martin Schwidefsky <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Mel Gorman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/powerpc/Kconfig
arch/s390/Kconfig
arch/x86/Kconfig
mm/Kconfig