]> git.baikalelectronics.ru Git - kernel.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)
committerakpm <akpm@linux-foundation.org>
Mon, 4 Jul 2022 01:08:46 +0000 (18:08 -0700)
commit7f7abf93dc3484f671eb9acaa5c7f8f9b0326b80
treefd6625c5b6a660c28577ef0528903410b6c8bfbb
parent727e1699214540c8e9ce950a12bed76f5e0ebe4d
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