[folded-merged] mm-vmscan-scan-until-it-founds-eligible-pages-fix.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxx>
Subject: mm-vmscan-scan-until-it-founds-eligible-pages-fix

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

Cc: Johannes Weiner <hannes@xxxxxxxxxxx>
Cc: Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx>
Cc: Michal Hocko <mhocko@xxxxxxxx>
Cc: Minchan Kim <minchan@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 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@xxxxxxxxxxxxxxxxxxxx are

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

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux