]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/lru: Add folio LRU functions
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 25 Feb 2021 14:47:41 +0000 (09:47 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 13 Aug 2021 18:19:36 +0000 (14:19 -0400)
commitbad0aa09b2e867b6929bc0b585f7216100c069f3
tree38d6084f1dcc36dae6d1d1060156b98dc19c61b0
parentee6d3ffc2a2d68456e9edcc51f6ad5ecbea529d7
mm/lru: Add folio LRU functions

Handle arbitrary-order folios being added to the LRU.  By definition,
all pages being added to the LRU were already head or base pages, but
call page_folio() on them anyway to get the type right and avoid the
buried calls to compound_head().

Saves 783 bytes of kernel text; no functions grow.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Yu Zhao <yuzhao@google.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Howells <dhowells@redhat.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Documentation/core-api/mm-api.rst
include/linux/mm_inline.h
include/trace/events/pagemap.h