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

David Laight <[email protected]> Fri, 5 Jun 2026 09:33:32 +0100
Newsgroups org.kernel.vger.linux-nilfs,dev.linux.lists.ocfs2-devel,org.kernel.vger.linux-ext4,org.kernel.vger.linux-fsdevel,org.kernel.vger.linux-kernel,org.kernel.vger.linux-nfs,org.kvack.linux-mm
Message-ID <20260605093332.7b067876@pumpkin>
On Thu, 4 Jun 2026 10:05:52 -0400
"Theodore Tso" <[email protected]> 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
>