]> git.baikalelectronics.ru Git - kernel.git/commit
mm/swap: convert lru_deactivate_file to a folio_batch
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 17 Jun 2022 17:50:03 +0000 (18:50 +0100)
committerakpm <akpm@linux-foundation.org>
Mon, 4 Jul 2022 01:08:45 +0000 (18:08 -0700)
commit6a91d60fb0aa0747f6d54c8d12175fcf69bd9ffc
tree5d93f5f29e562871402bf817ce4f86b41b224c8c
parent6b9441de3dd567fc8f6c931e38e7619f02a2dc92
mm/swap: convert lru_deactivate_file to a folio_batch

Use a folio throughout lru_deactivate_file_fn(), removing many hidden
calls to compound_head().  Shrinks the kernel by 864 bytes of text.

Link: https://lkml.kernel.org/r/20220617175020.717127-6-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/swap.c