]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/swap: optimise lru_add_drain_cpu()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 17 Jun 2022 17:50:09 +0000 (18:50 +0100)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 20 Jul 2022 00:15:09 +0000 (20:15 -0400)
commite9d02405d75da9467cb9af0c8d4c119a77ab4914
tree841853207603c0e88bcc622d542446061caa7200
parent57a6e8d68e48c108552e17a7f26271a761f8f55b
mm/swap: optimise lru_add_drain_cpu()

Do the per-cpu dereferencing of the fbatches once which saves 14 bytes
of text and several percpu relocations.

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