The patch titled Subject: mm-slb-guarantee-natural-alignment-for-kmallocpower-of-two-fix has been added to the -mm tree. Its filename is mm-slb-guarantee-natural-alignment-for-kmallocpower-of-two-fix.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-slb-guarantee-natural-alignment-for-kmallocpower-of-two-fix.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-slb-guarantee-natural-alignment-for-kmallocpower-of-two-fix.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: mm-slb-guarantee-natural-alignment-for-kmallocpower-of-two-fix documentation fixlet, per Matthew Cc: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx> Cc: Vlastimil Babka <vbabka@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- Documentation/core-api/memory-allocation.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/Documentation/core-api/memory-allocation.rst~mm-slb-guarantee-natural-alignment-for-kmallocpower-of-two-fix +++ a/Documentation/core-api/memory-allocation.rst @@ -99,8 +99,8 @@ configuration, but it is a good practice 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 -alignment is also guaranteed to be at least to the respective size. +ARCH_KMALLOC_MINALIGN bytes. For sizes which are a power of two, the +alignment is also guaranteed to be at least the respective size. For large allocations you can use :c:func:`vmalloc` and :c:func:`vzalloc`, or directly request pages from the page _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are ocfs2-clear-zero-in-unaligned-direct-io-checkpatch-fixes.patch fs-ocfs2-fix-possible-null-pointer-dereferences-in-ocfs2_xa_prepare_entry-fix.patch mm.patch mm-slb-guarantee-natural-alignment-for-kmallocpower-of-two-fix.patch mm-oom-avoid-printk-iteration-under-rcu-fix.patch diff-sucks.patch mm-introduce-madv_cold-fix.patch mm-introduce-madv_pageout-fix-fix.patch drivers-tty-serial-sh-scic-suppress-warning.patch kernel-forkc-export-kernel_thread-to-modules.patch