]> Git Repo - linux.git/commit
mm: Add folio flag manipulation functions
authorMatthew Wilcox (Oracle) <[email protected]>
Mon, 7 Dec 2020 20:42:09 +0000 (15:42 -0500)
committerMatthew Wilcox (Oracle) <[email protected]>
Mon, 27 Sep 2021 13:27:29 +0000 (09:27 -0400)
commitd389a4a8115518e2cc232649b012b72113fe8b67
tree70a73a4601468185f85efdec3c347f821ae42c5c
parent020853b6f5ead2849b055e9873ff7267ce584256
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) <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Acked-by: Jeff Layton <[email protected]>
Acked-by: Kirill A. Shutemov <[email protected]>
Acked-by: Vlastimil Babka <[email protected]>
Reviewed-by: William Kucharski <[email protected]>
Reviewed-by: David Howells <[email protected]>
Acked-by: Mike Rapoport <[email protected]>
include/linux/page-flags.h
This page took 0.066868 seconds and 4 git commands to generate.