diff options
author | Chengming Zhou <chengming.zhou@linux.dev> | 2024-02-21 15:12:53 +0300 |
---|---|---|
committer | Vlastimil Babka <vbabka@suse.cz> | 2024-02-21 18:20:11 +0300 |
commit | 303cd69394bb01f7ce0ce7509b3bd02f34795c05 (patch) | |
tree | 1d572b85eeae8173a91d0ef7e634a175e3ed11b7 /mm/slub.c | |
parent | 66b3dc1f04135f89384af39ec4e38546b82e1510 (diff) | |
download | linux-303cd69394bb01f7ce0ce7509b3bd02f34795c05.tar.xz |
mm, slab: remove unused object_size parameter in kmem_cache_flags()
We don't use the object_size parameter in kmem_cache_flags(), so just
remove it.
Signed-off-by: Chengming Zhou <chengming.zhou@linux.dev>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Diffstat (limited to 'mm/slub.c')
-rw-r--r-- | mm/slub.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/mm/slub.c b/mm/slub.c index 4ebc0df410ff..d8d8dd8e9803 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -1765,7 +1765,6 @@ __setup_param("slub_debug", slub_debug, setup_slub_debug, 0); /* * kmem_cache_flags - apply debugging options to the cache - * @object_size: the size of an object without meta data * @flags: flags to set * @name: name of the cache * @@ -1774,8 +1773,7 @@ __setup_param("slub_debug", slub_debug, setup_slub_debug, 0); * slab_debug=<Debug-Options>,<slab name1>,<slab name2> ... * then only the select slabs will receive the debug option(s). */ -slab_flags_t kmem_cache_flags(unsigned int object_size, - slab_flags_t flags, const char *name) +slab_flags_t kmem_cache_flags(slab_flags_t flags, const char *name) { char *iter; size_t len; @@ -1851,8 +1849,7 @@ static inline void add_full(struct kmem_cache *s, struct kmem_cache_node *n, struct slab *slab) {} static inline void remove_full(struct kmem_cache *s, struct kmem_cache_node *n, struct slab *slab) {} -slab_flags_t kmem_cache_flags(unsigned int object_size, - slab_flags_t flags, const char *name) +slab_flags_t kmem_cache_flags(slab_flags_t flags, const char *name) { return flags; } @@ -5105,7 +5102,7 @@ static int calculate_sizes(struct kmem_cache *s) static int kmem_cache_open(struct kmem_cache *s, slab_flags_t flags) { - s->flags = kmem_cache_flags(s->size, flags, s->name); + s->flags = kmem_cache_flags(flags, s->name); #ifdef CONFIG_SLAB_FREELIST_HARDENED s->random = get_random_long(); #endif |