]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/lru: Add folio_add_lru()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 29 Apr 2021 15:09:31 +0000 (11:09 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 16 Aug 2021 02:25:10 +0000 (22:25 -0400)
commit27be1c553c73680c15110033ee89034f49b7db96
tree5d3c3ae7b0692412de9c242d8927a7af4d5fcac1
parent36a7b1705bf5f85897f4b30c7c94dcc0b3cf9021
mm/lru: Add folio_add_lru()

Reimplement lru_cache_add() as a wrapper around folio_add_lru().
Saves 159 bytes of kernel text due to removing calls to compound_head().

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Howells <dhowells@redhat.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
include/linux/swap.h
mm/folio-compat.c
mm/swap.c