lkml.org 
[lkml]   [2005]   [Oct]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/7] Fragmentation Avoidance V16: 003_fragcore
On Wed, 5 Oct 2005, Dave Hansen wrote:

> On Wed, 2005-10-05 at 15:46 +0100, Mel Gorman wrote:
> >
> > @@ -1483,8 +1540,10 @@ void show_free_areas(void)
> >
> > spin_lock_irqsave(&zone->lock, flags);
> > for (order = 0; order < MAX_ORDER; order++) {
> > - nr = zone->free_area[order].nr_free;
> > - total += nr << order;
> > + for (type=0; type < RCLM_TYPES; type++) {
> > + nr = zone->free_area_lists[type][order].nr_free;
> > + total += nr << order;
> > + }
>
> Can that use the new for_each_ macro?
>

Yes, yes it can. Not sure why I dismissed it the first time around.

--
Mel Gorman
Part-time Phd Student Java Applications Developer
University of Limerick IBM Dublin Software Lab
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-10-05 19:00    [W:0.151 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site