]> www.infradead.org Git - users/willy/xarray.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>
Mon, 2 Sep 2024 03:25:48 +0000 (20:25 -0700)
commit2f52c77128b1f96b23c987a25dfc2f459634cc07
treee69339621fb592ed2d74c577dc1fbe2f6b427977
parent380d70549301a3ae6cf5f4ac90d62f648f516ff7
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