]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: Introduce struct folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 7 Dec 2020 03:22:48 +0000 (22:22 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 13 Aug 2021 18:18:40 +0000 (14:18 -0400)
commitecefbe302a477ae9a4753b364aadb0a6b711538c
treec21f0af6bbfa5cb9f0961b59c63b8fa7f709b48b
parent3fe8394274398560d281820caafcc59f70f863f1
mm: Introduce struct folio

A struct folio is a new abstraction to replace the venerable struct page.
A function which takes a struct folio argument declares that it will
operate on the entire (possibly compound) page, not just PAGE_SIZE bytes.
In return, the caller guarantees that the pointer it is passing does
not point to a tail page.  No change to generated code.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: Jeff Layton <jlayton@kernel.org>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Howells <dhowells@redhat.com>
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Documentation/core-api/mm-api.rst
include/linux/mm.h
include/linux/mm_types.h
include/linux/page-flags.h