Re: [PATCH v2] block: partitions: replace __get_free_page() with kmalloc()
From: Jens Axboe
Date: Wed May 27 2026 - 10:40:23 EST
On Wed, 27 May 2026 17:33:28 +0300, Mike Rapoport (Microsoft) wrote:
> check_partition() allocates a buffer to use as backing memory for
> seq_buf.
>
> This buffer can be allocated with kmalloc() as there's nothing special
> about it to go directly to the page allocator.
>
> kmalloc() provides a better API that does not require ugly casts and
> kfree() does not need to know the size of the freed object.
>
> [...]
Applied, thanks!
[1/1] block: partitions: replace __get_free_page() with kmalloc()
commit: 17d7492a50251d913ae7101f898cf30ede856cde
Best regards,
--
Jens Axboe