lkml.org 
[lkml]   [2008]   [Jan]   [26]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateSat, 26 Jan 2008 02:29:23 -0500
From"minchan kim" <>
Subject[PATCH] remove duplicating priority setting in try_to_free_p
shrink_zones in try_to_free_pages already set zone through
note_zone_scanning_priority.
So, setting prev_priority in try_to_free_pages is needless.

This patch is made by 2.6.24-rc8.

Signed-off-by: barrios <minchan.kim@gmail.com>
---
 mm/vmscan.c |   17 -----------------
 1 files changed, 0 insertions(+), 17 deletions(-)
diff --git a/mm/vmscan.c b/mm/vmscan.c
index e5a9597..fc55c23 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -1273,23 +1273,6 @@ unsigned long try_to_free_pages(struct z
    if (!sc.all_unreclaimable)
        ret = 1;
 out:
-   /*
-    * Now that we've scanned all the zones at this priority level, note
-    * that level within the zone so that the next thread which performs
-    * scanning of this zone will immediately start out at this priority
-    * level.  This affects only the decision whether or not to bring
-    * mapped pages onto the inactive list.
-    */
-   if (priority < 0)
-       priority = 0;
-   for (i = 0; zones[i] != NULL; i++) {
-       struct zone *zone = zones[i];
-
-       if (!cpuset_zone_allowed_hardwall(zone, GFP_KERNEL))
-           continue;
-
-       zone->prev_priority = priority;
-   }
    return ret;
 }

-- 
Kinds regards,
barrios


\
 
 \ /
  Last update: 2008-01-26 08:31    [from the cache]
©2003-2008