]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/swap: fold lru_rotate into cpu_fbatches
authorYu Zhao <yuzhao@google.com>
Thu, 11 Jul 2024 02:13:15 +0000 (20:13 -0600)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 17 Aug 2024 00:52:33 +0000 (17:52 -0700)
commitaef2cf657ff46427516ba5b3035b94f1b789dae0
treeee2975525cdd05ede833fafb83ec6be56d1c17a3
parentbf0c645b64b615e74760cbe02b9db5cdd731fa7f
mm/swap: fold lru_rotate into cpu_fbatches

Fold lru_rotate into cpu_fbatches, and rename the folio_batch and the lock
protecting it to lru_move_tail and lock_irq respectively so that all the
boilerplate can be removed at the end of this series.

Also remove data_race() around folio_batch_count(), which is out of place:
all folio_batch_count() calls on remote cpu_fbatches are subject to
data_race(), and therefore data_race() should be inside
folio_batch_count().

Link: https://lkml.kernel.org/r/20240711021317.596178-4-yuzhao@google.com
Signed-off-by: Yu Zhao <yuzhao@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/swap.c