Re: [PATCH v2 01/15] sl*b: s/__kmem_cache_create/do_kmem_cache_create/g

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>

Reviewed-by: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>

> ---
>  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
> 

-- 
Sincerely yours,
Mike.




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux