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, 18 Oct 2021 11:49:40 +0000 (07:49 -0400)
commit0d31125d2d3267ec349796418a16761bbda20387
tree0c8d48387f014681277dde1285d675fa675951c9
parent934387c99f1ce3c21b4f1fa67005dd95fbcee5e9
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