Re: [PATCH v3 21/21] mm: zone lru vectors interleaving

From: Hillf Danton
Date: Thu Feb 23 2012 - 09:44:30 EST


On Thu, Feb 23, 2012 at 9:53 PM, Konstantin Khlebnikov
<khlebnikov@xxxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/