mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
mm: remove unused argument from create_cache()
That root_cache argument is unused so remove it. Link: https://lore.kernel.org/r/20240828-work-kmem_cache-rcu-v3-1-5460bc1f09f6@kernel.org Acked-by: Mike Rapoport (Microsoft) <rppt@kernel.org> Reviewed-by: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
c0390d5411
commit
e446f18e98
@ -204,8 +204,7 @@ struct kmem_cache *find_mergeable(unsigned int size, unsigned int align,
|
||||
static struct kmem_cache *create_cache(const char *name,
|
||||
unsigned int object_size, unsigned int align,
|
||||
slab_flags_t flags, unsigned int useroffset,
|
||||
unsigned int usersize, void (*ctor)(void *),
|
||||
struct kmem_cache *root_cache)
|
||||
unsigned int usersize, void (*ctor)(void *))
|
||||
{
|
||||
struct kmem_cache *s;
|
||||
int err;
|
||||
@ -334,7 +333,7 @@ kmem_cache_create_usercopy(const char *name,
|
||||
|
||||
s = create_cache(cache_name, size,
|
||||
calculate_alignment(flags, align, size),
|
||||
flags, useroffset, usersize, ctor, NULL);
|
||||
flags, useroffset, usersize, ctor);
|
||||
if (IS_ERR(s)) {
|
||||
err = PTR_ERR(s);
|
||||
kfree_const(cache_name);
|
||||
|
Loading…
Reference in New Issue
Block a user