]> www.infradead.org Git - users/willy/pagecache.git/commit
mm/mempolicy: Add alloc_frozen_pages()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 31 May 2022 03:00:54 +0000 (23:00 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 3 Jan 2023 14:00:32 +0000 (09:00 -0500)
commit893cf68ee257efac9719bc03d39d8efcc363f1ee
treee9c3f62e963f339d8e2292058bfcffcb5f4fc526
parentfadfe565253af0b19b3909bd10ef030a5eefce6c
mm/mempolicy: Add alloc_frozen_pages()

Provide an interface to allocate pages from the page allocator without
incrementing their refcount.  This saves an atomic operation on free,
which may be beneficial to some users (eg slab).

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
mm/internal.h
mm/mempolicy.c