]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/page_alloc: Add folio allocation functions
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 16 Dec 2020 03:55:54 +0000 (22:55 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 16 Aug 2021 02:36:03 +0000 (22:36 -0400)
commit70ef3684cea12e5154a6e6321e9a6a46083805d2
tree19b89de0772d52fb3a8d4a29992f5dbbc70fb464
parent27be1c553c73680c15110033ee89034f49b7db96
mm/page_alloc: Add folio allocation functions

The __folio_alloc(), __folio_alloc_node() and folio_alloc() functions
are mostly for type safety, but they also ensure that the page allocator
allocates a compound page and initialises the deferred list if the page
is large enough to have one.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
include/linux/gfp.h
mm/mempolicy.c
mm/page_alloc.c