Message ID | 20240903-work-kmem_cache_args-v2-1-76f97e9a4560@kernel.org (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | slab: add struct kmem_cache_args | expand |
On Tue, Sep 03, 2024 at 04:20:42PM +0200, Christian Brauner wrote: > Free up reusing the double-underscore variant for follow-up patches. > > Signed-off-by: Christian Brauner <brauner@kernel.org> Reviewed-by: Mike Rapoport (Microsoft) <rppt@kernel.org> > --- > mm/slab.h | 2 +- > mm/slab_common.c | 4 ++-- > mm/slub.c | 2 +- > 3 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/mm/slab.h b/mm/slab.h > index a6051385186e..684bb48c4f39 100644 > --- a/mm/slab.h > +++ b/mm/slab.h > @@ -424,7 +424,7 @@ kmalloc_slab(size_t size, kmem_buckets *b, gfp_t flags, unsigned long caller) > gfp_t kmalloc_fix_flags(gfp_t flags); > > /* Functions provided by the slab allocators */ > -int __kmem_cache_create(struct kmem_cache *, slab_flags_t flags); > +int do_kmem_cache_create(struct kmem_cache *, slab_flags_t flags); > > void __init kmem_cache_init(void); > extern void create_boot_cache(struct kmem_cache *, const char *name, > diff --git a/mm/slab_common.c b/mm/slab_common.c > index 95db3702f8d6..91e0e36e4379 100644 > --- a/mm/slab_common.c > +++ b/mm/slab_common.c > @@ -234,7 +234,7 @@ static struct kmem_cache *create_cache(const char *name, > s->useroffset = useroffset; > s->usersize = usersize; > #endif > - err = __kmem_cache_create(s, flags); > + err = do_kmem_cache_create(s, flags); > if (err) > goto out_free_cache; > > @@ -778,7 +778,7 @@ void __init create_boot_cache(struct kmem_cache *s, const char *name, > s->usersize = usersize; > #endif > > - err = __kmem_cache_create(s, flags); > + err = do_kmem_cache_create(s, flags); > > if (err) > panic("Creation of kmalloc slab %s size=%u failed. Reason %d\n", > diff --git a/mm/slub.c b/mm/slub.c > index 9aa5da1e8e27..23d9d783ff26 100644 > --- a/mm/slub.c > +++ b/mm/slub.c > @@ -5902,7 +5902,7 @@ __kmem_cache_alias(const char *name, unsigned int size, unsigned int align, > return s; > } > > -int __kmem_cache_create(struct kmem_cache *s, slab_flags_t flags) > +int do_kmem_cache_create(struct kmem_cache *s, slab_flags_t flags) > { > int err; > > > -- > 2.45.2 >
diff --git a/mm/slab.h b/mm/slab.h index a6051385186e..684bb48c4f39 100644 --- a/mm/slab.h +++ b/mm/slab.h @@ -424,7 +424,7 @@ kmalloc_slab(size_t size, kmem_buckets *b, gfp_t flags, unsigned long caller) gfp_t kmalloc_fix_flags(gfp_t flags); /* Functions provided by the slab allocators */ -int __kmem_cache_create(struct kmem_cache *, slab_flags_t flags); +int do_kmem_cache_create(struct kmem_cache *, slab_flags_t flags); void __init kmem_cache_init(void); extern void create_boot_cache(struct kmem_cache *, const char *name, diff --git a/mm/slab_common.c b/mm/slab_common.c index 95db3702f8d6..91e0e36e4379 100644 --- a/mm/slab_common.c +++ b/mm/slab_common.c @@ -234,7 +234,7 @@ static struct kmem_cache *create_cache(const char *name, s->useroffset = useroffset; s->usersize = usersize; #endif - err = __kmem_cache_create(s, flags); + err = do_kmem_cache_create(s, flags); if (err) goto out_free_cache; @@ -778,7 +778,7 @@ void __init create_boot_cache(struct kmem_cache *s, const char *name, s->usersize = usersize; #endif - err = __kmem_cache_create(s, flags); + err = do_kmem_cache_create(s, flags); if (err) panic("Creation of kmalloc slab %s size=%u failed. Reason %d\n", diff --git a/mm/slub.c b/mm/slub.c index 9aa5da1e8e27..23d9d783ff26 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -5902,7 +5902,7 @@ __kmem_cache_alias(const char *name, unsigned int size, unsigned int align, return s; } -int __kmem_cache_create(struct kmem_cache *s, slab_flags_t flags) +int do_kmem_cache_create(struct kmem_cache *s, slab_flags_t flags) { int err;
Free up reusing the double-underscore variant for follow-up patches. Signed-off-by: Christian Brauner <brauner@kernel.org> --- mm/slab.h | 2 +- mm/slab_common.c | 4 ++-- mm/slub.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)