]> git.baikalelectronics.ru Git - kernel.git/commit
mm/sparse.c: add note about only VMEMMAP supporting sub-section hotplug
authorBaoquan He <bhe@redhat.com>
Tue, 7 Apr 2020 03:07:09 +0000 (20:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 7 Apr 2020 17:43:40 +0000 (10:43 -0700)
commit99400260fe29ccf0251fadc729cecae61e13c2ec
tree8009e9a373aa9760a165d05e8126e35cd7c7c5df
parentdbf0beaee07c4f6cf6f71c9a8fb8b3f6d1fa24b4
mm/sparse.c: add note about only VMEMMAP supporting sub-section hotplug

And tell check_pfn_span() gating the porper alignment and size of hot
added memory region.

And also move the code comments from inside section_deactivate() to being
above it.  The code comments are reasonable for the whole function, and
the moving makes code cleaner.

Signed-off-by: Baoquan He <bhe@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Pankaj Gupta <pankaj.gupta.linux@gmail.com>
Cc: Wei Yang <richard.weiyang@gmail.com>
Link: http://lkml.kernel.org/r/20200312124414.439-5-bhe@redhat.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/sparse.c