On Tue, 2008-05-06 at 16:27 +0100, Mel Gorman wrote:This rather doesn't look right. The intent is for i to iterate over the ranges (as nodes) and j to iterate over the zones to get the zonelist. The original variable k was going over the mappings, which you replaced with for_each_zone_zonelist. If you use node_zonelist(i, 0) you don't really look at the actual zones in the map. Therefore it seems what will give the original functionality back is actually this: James diff --git a/arch/parisc/mm/init.c b/arch/parisc/mm/init.c index 1f01284..7bc286d 100644 --- a/arch/parisc/mm/init.c +++ b/arch/parisc/mm/init.c @@ -602,15 +602,16 @@ void show_mem(void) #ifdef CONFIG_DISCONTIGMEM { - struct zonelist *zl; int i, j; for (i = 0; i < npmem_ranges; i++) { - zl = node_zonelist(i); for (j = 0; j < MAX_NR_ZONES; j++) { + struct zonelist *zl; struct zoneref *z; struct zone *zone; + zl = NODE_DATA(i)->node_zonelists + j; + printk("Zone list for zone %d on node %d: ", j, i); for_each_zone_zonelist(zone, z, zl, j) printk("[%d/%s] ", zone_to_nid(zone), --
| Yu Zhao | [PATCH 2/16 v6] PCI: define PCI resource names in an 'enum' |
| Greg Kroah-Hartman | [PATCH 011/196] sysfs: Fix a copy-n-paste typo in comment |
| Laurent Riffard | Re: 2.6.23-mm1: BUG in reiserfs_delete_xattrs |
| Ben Crowhurst | Kernel Development & Objective-C |
git: | |
| Kyle Rose | [OT] Re: C++ *for Git* |
| cte | linking libgit.a in C++ projects |
| Linus Torvalds | Re: CRLF problems with Git on Win32 |
| Pierre Habouzit | Re: [PATCH] bundle, fast-import: detect write failure |
| Thor Lancelot Simon | Re: sysctl knob to let sugid processes dump core (pr 15994) |
| YAMAMOTO Takashi | Re: Patches for EST and SMP |
| Bill Studenmund | Re: @booted_kernel magic symlink? |
| Adam Hamsik | Re: Thread benchmarks, round 2 |
| Chris | OpenBSD 4.4 installation error: write failed; file system full |
| Samuel Moñux | Cyrus IMAP performance problems [Long] |
| Steve B | Intel Atom and D945GCLF2 |
| James Hartley | scp batch mode? |
