]> 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>
Wed, 5 Apr 2023 23:02:37 +0000 (16:02 -0700)
commitb738906f6e00559754bac91f09962ac1e6f13ee9
treeb9926b353961f3af3ec0374a5868f117ac983bd4
parentd838cd42c5b942db8d3195faefd43b1ffc6c8745
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