]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/page_alloc: make deferred page init free pages in MAX_ORDER blocks
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Tue, 21 Mar 2023 00:24:15 +0000 (03:24 +0300)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 28 Mar 2023 23:25:13 +0000 (16:25 -0700)
commit18e58f8e585ca70220b292b99d82f5e7679b8092
tree50d77ddccbc65d76f3c2585b0cca550f15369be5
parentadb186da51149cb12d8e6e52840a60934f626f7a
mm/page_alloc: make deferred page init free pages in MAX_ORDER blocks

Normal page init path frees pages during the boot in MAX_ORDER chunks, but
deferred page init path does it in pageblock blocks.

Change deferred page init path to work in MAX_ORDER blocks.

For cases when MAX_ORDER is larger than pageblock, set migrate type to
MIGRATE_MOVABLE for all pageblocks covered by the page.

Link: https://lkml.kernel.org/r/20230321002415.20843-1-kirill.shutemov@linux.intel.com
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: David Hildenbrand <david@redhat.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Acked-by: Mike Rapoport (IBM) <rppt@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mmzone.h
mm/mm_init.c