diff options
author | 2021-11-10 12:57:43 +0100 | |
---|---|---|
committer | 2022-01-06 12:26:45 +0100 | |
commit | 662188c3a20eba75babc5a910a5f1b4278069f85 (patch) | |
tree | 026874baa3973fffcd016099dc0178c6589d89e2 /mm/slab.h | |
parent | mm/sl*b: Differentiate struct slab fields by sl*b implementations (diff) | |
download | linux-662188c3a20eba75babc5a910a5f1b4278069f85.tar.gz linux-662188c3a20eba75babc5a910a5f1b4278069f85.tar.bz2 linux-662188c3a20eba75babc5a910a5f1b4278069f85.zip |
mm/slub: Simplify struct slab slabs field definition
Before commit b47291ef02b0 ("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 <vbabka@suse.cz>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Reviewed-by: Roman Gushchin <guro@fb.com>
Diffstat (limited to 'mm/slab.h')
-rw-r--r-- | mm/slab.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/mm/slab.h b/mm/slab.h index ad15f624a6b5..495008f89bf6 100644 --- a/mm/slab.h +++ b/mm/slab.h @@ -27,11 +27,7 @@ struct slab { struct rcu_head rcu_head; struct { struct slab *next; -#ifdef CONFIG_64BIT int slabs; /* Nr of slabs left */ -#else - short int slabs; -#endif }; }; struct kmem_cache *slab_cache; |