On 5/13/25 14:01, Christoph Hellwig wrote: > On Tue, May 13, 2025 at 01:57:20PM +0800, Chao Yu wrote: >> .init_{,de}compress_ctx uses kvmalloc() to alloc memory, it will try >> to allocate physically continuous page first, it may cause more memory >> allocation pressure, let's use vmalloc instead to mitigate it. > > Shouldn't this be handled in kvmalloc instead of working around it in > callers?
kvmalloc() will allocate physically continuous page first, so it may race w/ other physically continuous page allocator who uses kmalloc(), in scenario of there are few physically continuous pages. Thanks, _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel