]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: rework accept memory helpers
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Fri, 9 Aug 2024 11:48:51 +0000 (14:48 +0300)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 17 Aug 2024 00:53:07 +0000 (17:53 -0700)
commitde74fa532424e4dd56f4a3d2882ada6e8c8aeb9a
treef8a8952a3645e71fa19307497a7a3d1ebce95b78
parent0194d033fb3423bb4b95f5a7e7e2da4efb9a10e8
mm: rework accept memory helpers

Make accept_memory() and range_contains_unaccepted_memory() take 'start'
and 'size' arguments instead of 'start' and 'end'.

Remove accept_page(), replacing it with direct calls to accept_memory().
The accept_page() name is going to be used for a different function.

Link: https://lkml.kernel.org/r/20240809114854.3745464-6-kirill.shutemov@linux.intel.com
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Suggested-by: David Hildenbrand <david@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Mike Rapoport (Microsoft) <rppt@kernel.org>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/x86/boot/compressed/misc.c
arch/x86/boot/compressed/misc.h
drivers/firmware/efi/libstub/efistub.h
drivers/firmware/efi/libstub/unaccepted_memory.c
drivers/firmware/efi/unaccepted_memory.c
include/linux/mm.h
mm/memblock.c
mm/mm_init.c
mm/page_alloc.c
tools/testing/memblock/internal.h