Re: [PATCH 3/7] Fragmentation Avoidance V16: 003_fragcore

Dave Hansen
2005-10-05T16:45:52Z

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?

-- Dave