Skip to content

Commit

Permalink
mm: Add folio flag manipulation functions
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Matthew Wilcox (Oracle) authored and pull[bot] committed Nov 1, 2021
1 parent 9db932d commit 6517947
Showing 1 changed file with 156 additions and 63 deletions.
Loading

0 comments on commit 6517947

Please sign in to comment.