Messages in this thread | | | Date | Mon, 23 Sep 2019 11:57:43 -0700 | From | Matthew Wilcox <> | Subject | Re: [PATCH v2 2/2] mm, sl[aou]b: guarantee natural alignment for kmalloc(power-of-two) |
| |
On Mon, Aug 26, 2019 at 01:16:27PM +0200, Vlastimil Babka wrote: > @@ -98,6 +98,10 @@ limited. The actual limit depends on the hardware and the kernel > configuration, but it is a good practice to use `kmalloc` for objects > smaller than page size. > > +The address of a chunk allocated with `kmalloc` is aligned to at least > +ARCH_KMALLOC_MINALIGN bytes. For sizes of power of two bytes, the
"For sizes which are a power of two, the"
> +alignment is also guaranteed to be at least to the respective size.
s/to //
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
| |