]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: Add folio flag manipulation functions
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 7 Dec 2020 20:42:09 +0000 (15:42 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 13 Aug 2021 18:19:13 +0000 (14:19 -0400)
commitee6d3ffc2a2d68456e9edcc51f6ad5ecbea529d7
tree1fcc497cf268c93eb1c40e6abb32fb45d5d522e5
parent02b8405166579c9f9c3a92acb327d5b9cbef96b1
mm: Add folio flag manipulation functions

These new functions are the folio analogues of the various PageFlags
functions.  If CONFIG_DEBUG_VM_PGFLAGS is enabled, we check the folio
is not a tail page at every invocation.  This will also catch the
PagePoisoned case as a poisoned page has every bit set, which would
include PageTail.

This saves 1684 bytes of text with the distro-derived config that
I'm testing due to removing a double call to compound_head() in
PageSwapCache().

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
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: David Howells <dhowells@redhat.com>
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
include/linux/page-flags.h