lkml.org 
[lkml]   [2006]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Slab: Node rotor for freeing alien caches and remote per cpu pages.
Christoph Lameter <clameter@engr.sgi.com> wrote:
>
> +void drain_node_pages(int nodeid)
> {
> - struct zone *zone;
> - int i;
> + int i, z;
> unsigned long flags;
>
> local_irq_save(flags);
> - for_each_zone(zone) {
> + for (z = 0; z < MAX_NR_ZONES; z++) {
> + struct zone *zone = NODE_DATA(nodeid)->node_zones + z;
> struct per_cpu_pageset *pset;
>
> - /* Do not drain local pagesets */
> - if (zone->zone_pgdat->node_id == numa_node_id())
> - continue;
> -
> pset = zone_pcp(zone, smp_processor_id());
> for (i = 0; i < ARRAY_SIZE(pset->pcp); i++) {

Should it be testing populated_zone() in there?
-
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/

\
 
 \ /
  Last update: 2006-02-24 02:03    [W:0.063 / U:0.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site