Re: [PATCH] block: partitions: replace __get_free_page() with kmalloc()

From: Christoph Hellwig

Date: Wed May 27 2026 - 09:18:37 EST


On Wed, May 27, 2026 at 12:04:29PM +0200, Hannes Reinecke wrote:
> Precisely my reasoning. In most cases, __get_free_page() is just a
> lazy way of saying "I need some memory and the allocation should not fail".

Huh? __get_free_page and kmalloc can and should fail.