mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
mm/slub: Simplify struct slab slabs field definition
Before commit b47291ef02
("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>
This commit is contained in:
parent
401fb12c68
commit
662188c3a2
1 changed files with 0 additions and 4 deletions
|
@ -27,11 +27,7 @@ struct slab {
|
||||||
struct rcu_head rcu_head;
|
struct rcu_head rcu_head;
|
||||||
struct {
|
struct {
|
||||||
struct slab *next;
|
struct slab *next;
|
||||||
#ifdef CONFIG_64BIT
|
|
||||||
int slabs; /* Nr of slabs left */
|
int slabs; /* Nr of slabs left */
|
||||||
#else
|
|
||||||
short int slabs;
|
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
struct kmem_cache *slab_cache;
|
struct kmem_cache *slab_cache;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue