Skip to content

Commit 662188c

Browse files
committed
mm/slub: Simplify struct slab slabs field definition
Before commit b47291e ("mm, slub: change percpu partial accounting from objects to pages") we had to fit two integer fields into a native word size, so we used short int on 32-bit and int on 64-bit via #ifdef. After that commit there is only one integer field, so we can simply define it as int everywhere. Signed-off-by: Vlastimil Babka <[email protected]> Acked-by: Johannes Weiner <[email protected]> Reviewed-by: Roman Gushchin <[email protected]>
1 parent 401fb12 commit 662188c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

mm/slab.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,7 @@ struct slab {
2727
struct rcu_head rcu_head;
2828
struct {
2929
struct slab *next;
30-
#ifdef CONFIG_64BIT
3130
int slabs; /* Nr of slabs left */
32-
#else
33-
short int slabs;
34-
#endif
3531
};
3632
};
3733
struct kmem_cache *slab_cache;

0 commit comments

Comments
 (0)