Re: [PATCH] Simplify node/zone field in page->flags

From: Matthew Dobson
Date: Mon Jan 05 2004 - 17:45:20 EST


Jesse Barnes wrote:
On Mon, Jan 05, 2004 at 01:22:57PM -0800, Matthew Dobson wrote:

Jesse had acked the patch in an earlier itteration. The only thing that's changed is some line offsets whilst porting the patch forward.

Jesse (or anyone else?), any objections to this patch as a superset of yours?


No objections here. Of course, you'll have to rediff against the
current tree since that stuff has been merged for awhile now. On a
somewhat related note, Martin mentioned that he'd like to get rid of
memblks. I'm all for that too; they just seem to get in the way.

Jesse

Here's an updated version against 2.6.1-rc1. Small comment fix (there are actually up to (MAX_NUMNODES * MAX_NR_ZONES) possible zones total, not log2(MAX_NUMNODES * MAX_NR_ZONES) as your comment stated. That is the number of bits necessary to index every possible zone.

After this goes in, we (I) can convert a number of places that are doing several pointer dereferences/arithmetic and other things to determine which node/zone a page belongs to simply calling page_nodenum()/page_zonenum().

Cheers!

-Matt

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/