Re: [PATCH] [11/18] Fix alignment bug in bootmem allocator

From: Yinghai Lu
Date: Mon Mar 17 2008 - 03:17:42 EST


On Mon, Mar 17, 2008 at 12:02 AM, Andi Kleen <andi@xxxxxxxxxxxxxx> wrote:
> > node_boot_start is not page aligned?
>
> It is, but it is not necessarily GB aligned and without this
> change sometimes alloc_bootmem when requesting GB alignment
> doesn't return GB aligned memory. This was a nasty problem
> that took some time to track down.

or preferred has some problem?

preferred = PFN_DOWN(ALIGN(preferred, align)) + offset;

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