summaryrefslogtreecommitdiffstats
path: root/Documentation/core-api/mm-api.rst
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2020-12-07 15:42:09 -0500
committerMatthew Wilcox (Oracle) <willy@infradead.org>2021-09-27 09:27:29 -0400
commitd389a4a8115518e2cc232649b012b72113fe8b67 (patch)
tree70a73a4601468185f85efdec3c347f821ae42c5c /Documentation/core-api/mm-api.rst
parent020853b6f5ead2849b055e9873ff7267ce584256 (diff)
downloadlinux-stable-d389a4a8115518e2cc232649b012b72113fe8b67.tar.gz
linux-stable-d389a4a8115518e2cc232649b012b72113fe8b67.tar.bz2
linux-stable-d389a4a8115518e2cc232649b012b72113fe8b67.zip
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>
Diffstat (limited to 'Documentation/core-api/mm-api.rst')
0 files changed, 0 insertions, 0 deletions