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

From: Hannes Reinecke

Date: Wed May 27 2026 - 09:23:05 EST


On 5/27/26 15:11, Christoph Hellwig wrote:
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.

Even better, one argument less why it should not be converted :-)

Cheers,

Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare@xxxxxxx +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich