Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 16831
b: refs/heads/master
c: 23316bc
h: refs/heads/master
i:
  16829: 2d5e18e
  16827: 6cdc563
  16823: d55dfaa
  16815: f6cf0c2
  16799: 51f8066
  16767: cbc6674
v: v3
  • Loading branch information
Nick Piggin authored and Linus Torvalds committed Jan 9, 2006
1 parent 88cbca1 commit 4704438
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8ad4b1fb8205340dba16b63467bb23efc27264d6
refs/heads/master: 23316bc86fd31c5d644a71c398ec41d9fecacec4
16 changes: 8 additions & 8 deletions trunk/mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ void drain_remote_pages(void)
if (zone->zone_pgdat->node_id == numa_node_id())
continue;

pset = zone->pageset[smp_processor_id()];
pset = zone_pcp(zone, smp_processor_id());
for (i = 0; i < ARRAY_SIZE(pset->pcp); i++) {
struct per_cpu_pages *pcp;

Expand Down Expand Up @@ -1881,12 +1881,12 @@ static int __devinit process_zones(int cpu)

for_each_zone(zone) {

zone->pageset[cpu] = kmalloc_node(sizeof(struct per_cpu_pageset),
zone_pcp(zone, cpu) = kmalloc_node(sizeof(struct per_cpu_pageset),
GFP_KERNEL, cpu_to_node(cpu));
if (!zone->pageset[cpu])
if (!zone_pcp(zone, cpu))
goto bad;

setup_pageset(zone->pageset[cpu], zone_batchsize(zone));
setup_pageset(zone_pcp(zone, cpu), zone_batchsize(zone));

if (percpu_pagelist_fraction)
setup_pagelist_highmark(zone_pcp(zone, cpu),
Expand All @@ -1898,8 +1898,8 @@ static int __devinit process_zones(int cpu)
for_each_zone(dzone) {
if (dzone == zone)
break;
kfree(dzone->pageset[cpu]);
dzone->pageset[cpu] = NULL;
kfree(zone_pcp(dzone, cpu));
zone_pcp(dzone, cpu) = NULL;
}
return -ENOMEM;
}
Expand Down Expand Up @@ -1984,7 +1984,7 @@ static __devinit void zone_pcp_init(struct zone *zone)
for (cpu = 0; cpu < NR_CPUS; cpu++) {
#ifdef CONFIG_NUMA
/* Early boot. Slab allocator not functional yet */
zone->pageset[cpu] = &boot_pageset[cpu];
zone_pcp(zone, cpu) = &boot_pageset[cpu];
setup_pageset(&boot_pageset[cpu],0);
#else
setup_pageset(zone_pcp(zone,cpu), batch);
Expand Down Expand Up @@ -2227,7 +2227,7 @@ static int zoneinfo_show(struct seq_file *m, void *arg)
seq_printf(m,
")"
"\n pagesets");
for (i = 0; i < ARRAY_SIZE(zone->pageset); i++) {
for_each_online_cpu(i) {
struct per_cpu_pageset *pageset;
int j;

Expand Down

0 comments on commit 4704438

Please sign in to comment.