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, 18 Oct 2021 11:49:40 +0000 (07:49 -0400)
commitcc09cb134124a42fbe3bdcebefdc54e286d8f3e5
tree9b4d5703a69507091b2c689a1f111088c19592ec
parent0d31125d2d3267ec349796418a16761bbda20387
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