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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]