From: Yu Zhao Date: Sun, 4 Aug 2024 21:36:31 +0000 (-0600) Subject: mm-swap-remove-boilerplate-fix X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6dde1396b7d25e2572a8dcef940b856f27d1e54e;p=users%2Fjedix%2Flinux-maple.git mm-swap-remove-boilerplate-fix handle zero-length local_lock_t Link: https://lkml.kernel.org/r/Zq_0X04WsqgUnz30@google.com Signed-off-by: Yu Zhao Reported-by: Hugh Dickins Tested-by: Hugh Dickins Signed-off-by: Andrew Morton --- diff --git a/mm/swap.c b/mm/swap.c index 4bc08352ad87d..67a246772811b 100644 --- a/mm/swap.c +++ b/mm/swap.c @@ -254,7 +254,7 @@ static void __folio_batch_add_and_move(struct folio_batch __percpu *fbatch, folio, \ op, \ on_lru, \ - offsetof(struct cpu_fbatches, op) > offsetof(struct cpu_fbatches, lock_irq) \ + offsetof(struct cpu_fbatches, op) >= offsetof(struct cpu_fbatches, lock_irq) \ ) static void lru_move_tail(struct lruvec *lruvec, struct folio *folio)