Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mm: Move ARCH_SLAB_MINALIGN and ARCH_KMALLOC_MINALIGN to <linux/slub_def.h>

Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>

authored by

David Woodhouse and committed by
Pekka Enberg
4581ced3 bac49ce4

+8 -8
+8
include/linux/slub_def.h
··· 116 116 117 117 #define KMALLOC_SHIFT_LOW ilog2(KMALLOC_MIN_SIZE) 118 118 119 + #ifndef ARCH_KMALLOC_MINALIGN 120 + #define ARCH_KMALLOC_MINALIGN __alignof__(unsigned long long) 121 + #endif 122 + 123 + #ifndef ARCH_SLAB_MINALIGN 124 + #define ARCH_SLAB_MINALIGN __alignof__(unsigned long long) 125 + #endif 126 + 119 127 /* 120 128 * Maximum kmalloc object size handled by SLUB. Larger object allocations 121 129 * are passed through to the page allocator. The page allocator "fastpath"
-8
mm/slub.c
··· 157 157 #define SLUB_MERGE_SAME (SLAB_DEBUG_FREE | SLAB_RECLAIM_ACCOUNT | \ 158 158 SLAB_CACHE_DMA | SLAB_NOTRACK) 159 159 160 - #ifndef ARCH_KMALLOC_MINALIGN 161 - #define ARCH_KMALLOC_MINALIGN __alignof__(unsigned long long) 162 - #endif 163 - 164 - #ifndef ARCH_SLAB_MINALIGN 165 - #define ARCH_SLAB_MINALIGN __alignof__(unsigned long long) 166 - #endif 167 - 168 160 #define OO_SHIFT 16 169 161 #define OO_MASK ((1 << OO_SHIFT) - 1) 170 162 #define MAX_OBJS_PER_PAGE 65535 /* since page.objects is u16 */