Re: [PATCH 1/2] mm: Introduce GFP_PANIC for early-boot allocations

Ingo Molnar
2009-05-09T09:34:56Z

* Ingo Molnar <mingo@elte.hu> wrote:

> it is shorter, tidier, more maintainable, more reviewable to write:
>
> ptr = kmalloc(GFP_BOOT, size);
>
> than to write:
>
> ptr = kmalloc(GFP_KERNEL, size);
> BUG_ON(!ptr);

[ Oh, and everyone saw the kernel bug i hid, and did notice it in
the first variant sooner than in the second, right? :) ]

Ingo