mm/sparsemem: convert kmalloc_section_memmap() to populate_section_memmap()
Dan Williams authored
Allow sub-section sized ranges to be added to the memmap.

populate_section_memmap() takes an explict pfn range rather than
assuming a full section, and those parameters are plumbed all the way
through to vmmemap_populate().  There should be no sub-section usage in
current deployments.  New warnings are added to clarify which memmap
allocation paths are sub-section capable.

Link: http://lkml.kernel.org/r/156092352058.979959.6551283472062305149.stgit@dwillia2-desk3.amr.corp.intel.com

Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
Reviewed-by: default avatarPavel Tatashin <pasha.tatashin@soleen.com>
Tested-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>	[ppc64]
Reviewed-by: default avatarOscar Salvador <osalvador@suse.de>
Cc: Michal Hocko <mhocko@suse.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Logan Gunthorpe <logang@deltatee.com>
Cc: Jane Chu <jane.chu@oracle.com>
Cc: Jeff Moyer <jmoyer@redhat.com>
Cc: Jérôme Glisse <jglisse@redhat.com>
Cc...
e9c0a3f0
Name Last commit Last update
..
alpha Merge branch 'akpm' (patches from Andrew)
arc Merge branch 'akpm' (patches from Andrew)
arm Merge branch 'akpm' (patches from Andrew)
arm64 mm/memory_hotplug: allow arch_remove_memory() without CONFIG_MEMORY_HOTREMOVE
c6x Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu
csky Merge tag 'kconfig-v5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
h8300 Merge tag 'h8300-for-linus-20190617' of git://git.sourceforge.jp/gitroot/uclinux-h8/linux
hexagon hexagon: define syscall_get_error() and syscall_get_return_value()
ia64 mm/memory_hotplug: allow arch_remove_memory() without CONFIG_MEMORY_HOTREMOVE
m68k arch: mark syscall number 435 reserved for clone3
microblaze Merge tag 'clone3-v5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux
mips Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux
nds32 nds32: fix asm/syscall.h
nios2 Merge tag 'nios2-v5.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/lftan/nios2
openrisc Merge tag 'dma-mapping-5.3' of git://git.infradead.org/users/hch/dma-mapping
parisc Merge branch 'akpm' (patches from Andrew)
powerpc mm/memory_hotplug: rename walk_memory_range() and pass start+size instead of pfns
riscv Merge tag 'kconfig-v5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
s390 mm/memory_hotplug: allow arch_remove_memory() without CONFIG_MEMORY_HOTREMOVE
sh mm/memory_hotplug: allow arch_remove_memory() without CONFIG_MEMORY_HOTREMOVE
sparc Merge branch 'akpm' (patches from Andrew)
um Merge tag 'for-linus-5.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml
unicore32 Merge tag 'kconfig-v5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
x86 mm/sparsemem: convert kmalloc_section_memmap() to populate_section_memmap()
xtensa Merge branch 'akpm' (patches from Andrew)
.gitignore arch: Ignore arch/i386 and arch/x86_64
Kconfig dma-direct: provide generic support for uncached kernel segments