Re: [SPARSEMEM] confusing uses of SPARSEM_EXTREME (try #2)

From: Dave Hansen
Date: Mon Jun 12 2006 - 12:10:07 EST


On Mon, 2006-06-12 at 09:00 +0200, Franck Bui-Huu wrote:
> Is it me or the use of CONFIG_SPARSEMEM_EXTREME is really confusing in
> mm/sparce.c ? Shouldn't we use CONFIG_SPARSEMEM_STATIC instead like
> the following patch suggests ?

I'll take positive config options over negative ones any day. I find it
easier to read things that say what they *are* rather than what they are
*not*.

In any case, STATIC is really there as an override for architectures to
say, "I know what I am doing, I use gcc 3.4 and above, or, I don't want
to use bootmem". Extreme is really there to say, "I want two-level
lookups because my memory is extremely sparse."

Make sense?

-- Dave

-
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/