| Date | Thu, 23 Feb 2012 22:44:30 +0800 | Subject | Re: [PATCH v3 21/21] mm: zone lru vectors interleaving | From | Hillf Danton <> |
| |
On Thu, Feb 23, 2012 at 9:53 PM, Konstantin Khlebnikov <khlebnikov@openvz.org> wrote: > @@ -4312,7 +4312,7 @@ void init_zone_lruvec(struct zone *zone, struct lruvec *lruvec) > static void __paginginit free_area_init_core(struct pglist_data *pgdat, > unsigned long *zones_size, unsigned long *zholes_size) > { > - enum zone_type j; > + enum zone_type j, lruvec_id;
Like other cases in the patch,
int lruvec_id;
looks clearer
> int nid = pgdat->node_id; > unsigned long zone_start_pfn = pgdat->node_start_pfn; > int ret; > @@ -4374,7 +4374,8 @@ static void __paginginit free_area_init_core(struct pglist_data *pgdat, > zone->zone_pgdat = pgdat; > > zone_pcp_init(zone); > - init_zone_lruvec(zone, &zone->lruvec); > + for_each_lruvec_id(lruvec_id) > + init_zone_lruvec(zone, &zone->lruvec[lruvec_id]); > zap_zone_vm_stats(zone); > zone->flags = 0; > if (!size) -- 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/
|