diff options
-rw-r--r-- | mm/slub.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1917,7 +1917,6 @@ static int calculate_sizes(struct kmem_cache *s) | |||
1917 | */ | 1917 | */ |
1918 | s->inuse = size; | 1918 | s->inuse = size; |
1919 | 1919 | ||
1920 | #ifdef CONFIG_SLUB_DEBUG | ||
1921 | if (((flags & (SLAB_DESTROY_BY_RCU | SLAB_POISON)) || | 1920 | if (((flags & (SLAB_DESTROY_BY_RCU | SLAB_POISON)) || |
1922 | s->ctor)) { | 1921 | s->ctor)) { |
1923 | /* | 1922 | /* |
@@ -1932,6 +1931,7 @@ static int calculate_sizes(struct kmem_cache *s) | |||
1932 | size += sizeof(void *); | 1931 | size += sizeof(void *); |
1933 | } | 1932 | } |
1934 | 1933 | ||
1934 | #ifdef CONFIG_SLUB_DEBUG | ||
1935 | if (flags & SLAB_STORE_USER) | 1935 | if (flags & SLAB_STORE_USER) |
1936 | /* | 1936 | /* |
1937 | * Need to store information about allocs and frees after | 1937 | * Need to store information about allocs and frees after |