mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [folded-merged] mm-vmscan-scan-until-it-founds-eligible-pages-fix.patch removed from -mm tree
@ 2017-05-12 22:42 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2017-05-12 22:42 UTC (permalink / raw)
  To: akpm, hannes, mgorman, mhocko, minchan, mm-commits


The patch titled
     Subject: mm-vmscan-scan-until-it-founds-eligible-pages-fix
has been removed from the -mm tree.  Its filename was
     mm-vmscan-scan-until-it-founds-eligible-pages-fix.patch

This patch was dropped because it was folded into mm-vmscan-scan-until-it-founds-eligible-pages.patch

------------------------------------------------------
From: Andrew Morton <akpm@linux-foundation.org>
Subject: mm-vmscan-scan-until-it-founds-eligible-pages-fix

Clean up mind-bending `for' statement.   Tweak comment text.

Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/vmscan.c |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff -puN mm/vmscan.c~mm-vmscan-scan-until-it-founds-eligible-pages-fix mm/vmscan.c
--- a/mm/vmscan.c~mm-vmscan-scan-until-it-founds-eligible-pages-fix
+++ a/mm/vmscan.c
@@ -1472,10 +1472,10 @@ static unsigned long isolate_lru_pages(u
 	unsigned long scan, total_scan, nr_pages;
 	LIST_HEAD(pages_skipped);
 
-	for (total_scan = scan = 0; scan < nr_to_scan &&
-					nr_taken < nr_to_scan &&
-					!list_empty(src);
-					total_scan++) {
+	scan = 0;
+	for (total_scan = 0;
+	     scan < nr_to_scan && nr_taken < nr_to_scan && !list_empty(src);
+	     total_scan++) {
 		struct page *page;
 
 		page = lru_to_page(src);
@@ -1490,10 +1490,10 @@ static unsigned long isolate_lru_pages(u
 		}
 
 		/*
-		 * Do not count skipped pages because it makes the function to
-		 * return with none isolated pages if the LRU mostly contains
-		 * ineligible pages so that VM cannot reclaim any pages and
-		 * trigger premature OOM.
+		 * Do not count skipped pages because that makes the function
+		 * return with no isolated pages if the LRU mostly contains
+		 * ineligible pages.  This causes the VM to not reclaim any
+		 * pages, triggering a premature OOM.
 		 */
 		scan++;
 		switch (__isolate_lru_page(page, mode)) {
_

Patches currently in -mm which might be from akpm@linux-foundation.org are

tigran-has-moved.patch
mm-vmscan-scan-until-it-founds-eligible-pages.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-05-12 22:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-12 22:42 [folded-merged] mm-vmscan-scan-until-it-founds-eligible-pages-fix.patch removed from -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).