Re: [PATCH 3/3] Zone reclaim V3: Frequency of failed reclaim attempts

From: Christoph Lameter <clameter_at_engr.sgi.com>
Date: 2005-12-09 08:08:50
Patch:

Index: linux-2.6.15-rc4/mm/vmscan.c
===================================================================
--- linux-2.6.15-rc4.orig/mm/vmscan.c	2005-12-08 12:31:56.000000000 -0800
+++ linux-2.6.15-rc4/mm/vmscan.c	2005-12-08 13:07:05.000000000 -0800
@@ -1386,7 +1386,7 @@ int zone_reclaim(struct zone *zone, gfp_
 	 * will be a waste of time. Continue off node allocations for the
 	 * duration of this tick.
 	 */
-	if (zone->last_unsuccessful_zone_reclaim == get_jiffies_64())
+	if (zone->last_unsuccessful_zone_reclaim == jiffies)
 		return 0;
 
 	sc.gfp_mask = gfp_mask;
@@ -1408,7 +1408,7 @@ int zone_reclaim(struct zone *zone, gfp_
 	p->reclaim_state = NULL;
 	current->flags &= ~PF_MEMALLOC;
 	if (sc.nr_reclaimed == 0)
-		zone->last_unsuccessful_zone_reclaim = get_jiffies_64();
+		zone->last_unsuccessful_zone_reclaim = jiffies;
 	cond_resched();
 	return sc.nr_reclaimed >= (1 << order);
 }
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Fri Dec 09 08:12:07 2005

This archive was generated by hypermail 2.1.8 : 2005-12-09 08:13:15 EST