Re: [PATCH v2 2/2] lib/raid6: use kvmalloc() in raid6_select_algo()
From: Christoph Hellwig
Date: Wed May 27 2026 - 02:42:32 EST
On Tue, May 26, 2026 at 10:34:24AM -0700, Andrew Morton wrote:
> /* prepare the buffer and fill it circularly with gfmul table */
> - disk_ptr = (char *)__get_free_pages(GFP_KERNEL, RAID6_TEST_DISKS_ORDER);
> + disk_ptr = kvmalloc(PAGE_SIZE * RAID6_TEST_DISKS, GFP_KERNEL);
This changes to vmalloc for no good reason. It also doesn't use
the _array version for overflow-safe multiplying (not that it matters
much here..)