Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6:
slab: fix object alignment
slub: add missing __percpu markup in mm/slub_def.h

+3 -3
+1 -1
include/linux/slub_def.h
··· 68 * Slab cache management. 69 */ 70 struct kmem_cache { 71 - struct kmem_cache_cpu *cpu_slab; 72 /* Used for retriving partial slabs etc */ 73 unsigned long flags; 74 int size; /* The size of an object including meta data */
··· 68 * Slab cache management. 69 */ 70 struct kmem_cache { 71 + struct kmem_cache_cpu __percpu *cpu_slab; 72 /* Used for retriving partial slabs etc */ 73 unsigned long flags; 74 int size; /* The size of an object including meta data */
+2 -2
mm/slab.c
··· 2330 } 2331 #if FORCED_DEBUG && defined(CONFIG_DEBUG_PAGEALLOC) 2332 if (size >= malloc_sizes[INDEX_L3 + 1].cs_size 2333 - && cachep->obj_size > cache_line_size() && size < PAGE_SIZE) { 2334 - cachep->obj_offset += PAGE_SIZE - size; 2335 size = PAGE_SIZE; 2336 } 2337 #endif
··· 2330 } 2331 #if FORCED_DEBUG && defined(CONFIG_DEBUG_PAGEALLOC) 2332 if (size >= malloc_sizes[INDEX_L3 + 1].cs_size 2333 + && cachep->obj_size > cache_line_size() && ALIGN(size, align) < PAGE_SIZE) { 2334 + cachep->obj_offset += PAGE_SIZE - ALIGN(size, align); 2335 size = PAGE_SIZE; 2336 } 2337 #endif