mm: move buddy list manipulations into helpers
In preparation for runtime randomization of the zone lists, take all (well, most of) the list_*() functions in the buddy allocator and put them in helper functions. Provide a common control point for injecting additional behavior when freeing pages. [dan.j.williams@intel.com: fix buddy list helpers] Link: http://lkml.kernel.org/r/155033679702.1773410.13041474192173212653.stgit@dwillia2-desk3.amr.corp.intel.com [vbabka@suse.cz: remove del_page_from_free_area() migratetype parameter] Link: http://lkml.kernel.org/r/4672701b-6775-6efd-0797-b6242591419e@suse.cz Link: http://lkml.kernel.org/r/154899812264.3165233.5219320056406926223.stgit@dwillia2-desk3.amr.corp.intel.com Signed-off-by:Dan Williams <dan.j.williams@intel.com> Signed-off-by:
Vlastimil Babka <vbabka@suse.cz> Tested-by:
Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp> Acked-by:
Michal Hocko <mhocko@suse.com> Cc: Vlastimil Babka <vbabka@suse.cz> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: Kees Cook <keescook@chromium.org> Cc: Keith Busch <keith.busch@intel.com> Cc: Robert Elliott <elliott@hpe.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- include/linux/mm.h 0 additions, 3 deletionsinclude/linux/mm.h
- include/linux/mm_types.h 3 additions, 0 deletionsinclude/linux/mm_types.h
- include/linux/mmzone.h 46 additions, 0 deletionsinclude/linux/mmzone.h
- mm/compaction.c 2 additions, 2 deletionsmm/compaction.c
- mm/page_alloc.c 22 additions, 43 deletionsmm/page_alloc.c
Loading
Please register or sign in to comment