lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 23 Feb 2012 22:44:30 +0800
From:	Hillf Danton <dhillf@...il.com>
To:	Konstantin Khlebnikov <khlebnikov@...nvz.org>
Cc:	Hugh Dickins <hughd@...gle.com>, linux-kernel@...r.kernel.org,
	linux-mm@...ck.org, Johannes Weiner <hannes@...xchg.org>,
	Andrew Morton <akpm@...ux-foundation.org>,
	KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>,
	Andi Kleen <andi@...stfloor.org>
Subject: Re: [PATCH v3 21/21] mm: zone lru vectors interleaving

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

Powered by blists - more mailing lists