Skip to content

Commit 53d3d21

Browse files
braunertehcaster
authored andcommitted
slab: s/__kmem_cache_create/do_kmem_cache_create/g
Free up reusing the double-underscore variant for follow-up patches. Reviewed-by: Kees Cook <[email protected]> Reviewed-by: Jens Axboe <[email protected]> Reviewed-by: Mike Rapoport (Microsoft) <[email protected]> Reviewed-by: Vlastimil Babka <[email protected]> Signed-off-by: Christian Brauner <[email protected]> Reviewed-by: Roman Gushchin <[email protected]> Signed-off-by: Vlastimil Babka <[email protected]>
1 parent e16f4f7 commit 53d3d21

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

mm/slab.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ kmalloc_slab(size_t size, kmem_buckets *b, gfp_t flags, unsigned long caller)
424424
gfp_t kmalloc_fix_flags(gfp_t flags);
425425

426426
/* Functions provided by the slab allocators */
427-
int __kmem_cache_create(struct kmem_cache *, slab_flags_t flags);
427+
int do_kmem_cache_create(struct kmem_cache *, slab_flags_t flags);
428428

429429
void __init kmem_cache_init(void);
430430
extern void create_boot_cache(struct kmem_cache *, const char *name,

mm/slab_common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ static struct kmem_cache *create_cache(const char *name,
234234
s->useroffset = useroffset;
235235
s->usersize = usersize;
236236
#endif
237-
err = __kmem_cache_create(s, flags);
237+
err = do_kmem_cache_create(s, flags);
238238
if (err)
239239
goto out_free_cache;
240240

@@ -778,7 +778,7 @@ void __init create_boot_cache(struct kmem_cache *s, const char *name,
778778
s->usersize = usersize;
779779
#endif
780780

781-
err = __kmem_cache_create(s, flags);
781+
err = do_kmem_cache_create(s, flags);
782782

783783
if (err)
784784
panic("Creation of kmalloc slab %s size=%u failed. Reason %d\n",

mm/slub.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5902,7 +5902,7 @@ __kmem_cache_alias(const char *name, unsigned int size, unsigned int align,
59025902
return s;
59035903
}
59045904

5905-
int __kmem_cache_create(struct kmem_cache *s, slab_flags_t flags)
5905+
int do_kmem_cache_create(struct kmem_cache *s, slab_flags_t flags)
59065906
{
59075907
int err;
59085908

0 commit comments

Comments
 (0)