Re: [PATCH 1/2] mm: slab: fix comment for ARCH_KMALLOC_MINALIGN

From: Christoph Lameter
Date: Fri Apr 29 2022 - 03:32:29 EST


On Thu, 28 Apr 2022, andrey.konovalov@xxxxxxxxx wrote:

> From: Andrey Konovalov <andreyknvl@xxxxxxxxxx>
>
> The comment next to the ARCH_KMALLOC_MINALIGN definition says that
> ARCH_KMALLOC_MINALIGN can be defined in arch headers. This is incorrect:
> it's actually ARCH_DMA_MINALIGN that can be defined there.

The section is talking about kmalloc and not general kmem_cache_alloc()
and there was the intention of separating the alignment requirements
between these two groups of caches in the slab allocators.