Re: [PATCH] replace various uses of num_physpages by totalram_pages

From: Rusty Russell
Date: Wed Jul 01 2009 - 00:58:07 EST


On Tue, 30 Jun 2009 08:38:32 pm Jan Beulich wrote:
> Sizing of memory allocations shouldn't depend on the number of physical
> pages found in a system, as that generally include (perhaps a huge
> amount of) non-RAM pages. The amount of what actually is usable as
> storage should instead be used as a basis here.

I like this patch. Where's num_physpages used after this: should it be an
arch-specific or even a static?

FWIW: Acked-by: Rusty Russell <rusty@xxxxxxxxxxxxxxx>

Thanks,
Rusty.
--
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/