[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aa0e9d67-fbcd-9d79-88a1-641dfbe1d9d1@google.com>
Date: Mon, 8 Sep 2025 15:21:12 -0700 (PDT)
From: Hugh Dickins <hughd@...gle.com>
To: Andrew Morton <akpm@...ux-foundation.org>
cc: Alexander Krabler <Alexander.Krabler@...a.com>,
"Aneesh Kumar K.V" <aneesh.kumar@...nel.org>,
Axel Rasmussen <axelrasmussen@...gle.com>, Chris Li <chrisl@...nel.org>,
Christoph Hellwig <hch@...radead.org>,
David Hildenbrand <david@...hat.com>, Frederick Mayle <fmayle@...gle.com>,
Jason Gunthorpe <jgg@...pe.ca>, Johannes Weiner <hannes@...xchg.org>,
John Hubbard <jhubbard@...dia.com>, Keir Fraser <keirf@...gle.com>,
Konstantin Khlebnikov <koct9i@...il.com>, Li Zhe <lizhe.67@...edance.com>,
Matthew Wilcox <willy@...radead.org>, Peter Xu <peterx@...hat.com>,
Rik van Riel <riel@...riel.com>, Shivank Garg <shivankg@....com>,
Vlastimil Babka <vbabka@...e.cz>, Wei Xu <weixugc@...gle.com>,
Will Deacon <will@...nel.org>, yangge <yangge1116@....com>,
Yuanchu Xie <yuanchu@...gle.com>, Yu Zhao <yuzhao@...gle.com>,
linux-kernel@...r.kernel.org, linux-mm@...ck.org
Subject: [PATCH v2 4/6] mm: Revert "mm: vmscan.c: fix OOM on swap stress
test"
This reverts commit 0885ef4705607936fc36a38fd74356e1c465b023: that
was a fix to the reverted 33dfe9204f29b415bbc0abb1a50642d1ba94f5e9.
Signed-off-by: Hugh Dickins <hughd@...gle.com>
Acked-by: David Hildenbrand <david@...hat.com>
Cc: <stable@...r.kernel.org>
---
mm/vmscan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/vmscan.c b/mm/vmscan.c
index a48aec8bfd92..674999999cd0 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -4507,7 +4507,7 @@ static bool sort_folio(struct lruvec *lruvec, struct folio *folio, struct scan_c
}
/* ineligible */
- if (!folio_test_lru(folio) || zone > sc->reclaim_idx) {
+ if (zone > sc->reclaim_idx) {
gen = folio_inc_gen(lruvec, folio, false);
list_move_tail(&folio->lru, &lrugen->folios[gen][type][zone]);
return true;
--
2.51.0
Powered by blists - more mailing lists