Re: [PATCH 10/17] jbd2: replace __get_free_pages() with kmalloc()

From: David Laight

Date: Fri Jun 05 2026 - 04:47:07 EST


On Thu, 4 Jun 2026 10:05:52 -0400
"Theodore Tso" <tytso@xxxxxxx> wrote:

...
> I suppose we could do it with kmalloc() with some flags which to
> prevent forced reclaim / compaction, and if that fails, then fall back
> to vmalloc(). Is there a better way?

There is already kvalloc().
I'm not sure how hard that tries to get kmalloc() to succeed.

-- David

>
> Thanks,
>
> - Ted
>