Skip to content

Commit 8d79ed3

Browse files
Hugh Dickinsakpm00
authored andcommitted
mm: revert "mm: vmscan.c: fix OOM on swap stress test"
This reverts commit 0885ef4: that was a fix to the reverted 33dfe92. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Hugh Dickins <[email protected]> Acked-by: David Hildenbrand <[email protected]> Cc: "Aneesh Kumar K.V" <[email protected]> Cc: Axel Rasmussen <[email protected]> Cc: Chris Li <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Jason Gunthorpe <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: John Hubbard <[email protected]> Cc: Keir Fraser <[email protected]> Cc: Konstantin Khlebnikov <[email protected]> Cc: Li Zhe <[email protected]> Cc: Matthew Wilcox (Oracle) <[email protected]> Cc: Peter Xu <[email protected]> Cc: Rik van Riel <[email protected]> Cc: Shivank Garg <[email protected]> Cc: Vlastimil Babka <[email protected]> Cc: Wei Xu <[email protected]> Cc: Will Deacon <[email protected]> Cc: yangge <[email protected]> Cc: Yuanchu Xie <[email protected]> Cc: Yu Zhao <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent afb99e9 commit 8d79ed3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/vmscan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4507,7 +4507,7 @@ static bool sort_folio(struct lruvec *lruvec, struct folio *folio, struct scan_c
45074507
}
45084508

45094509
/* ineligible */
4510-
if (!folio_test_lru(folio) || zone > sc->reclaim_idx) {
4510+
if (zone > sc->reclaim_idx) {
45114511
gen = folio_inc_gen(lruvec, folio, false);
45124512
list_move_tail(&folio->lru, &lrugen->folios[gen][type][zone]);
45134513
return true;

0 commit comments

Comments
 (0)