[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090509093249.GA4874@elte.hu>
Date: Sat, 9 May 2009 11:32:49 +0200
From: Ingo Molnar <mingo@...e.hu>
To: Pekka Enberg <penberg@...helsinki.fi>
Cc: Andrew Morton <akpm@...ux-foundation.org>, gorcunov@...nvz.org,
kosaki.motohiro@...fujitsu.com, mel@....ul.ie,
cl@...ux-foundation.org, riel@...hat.com,
linux-kernel@...r.kernel.org, rientjes@...gle.com
Subject: Re: [PATCH 1/2] mm: Introduce GFP_PANIC for early-boot allocations
* Ingo Molnar <mingo@...e.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists