diff mbox series

[-next] mm/slub: correct comment in do_slab_free()

Message ID 20240325122217.273978-1-xiujianfeng@huaweicloud.com (mailing list archive)
State New
Headers show
Series [-next] mm/slub: correct comment in do_slab_free() | expand

Commit Message

Xiu Jianfeng March 25, 2024, 12:22 p.m. UTC
From: Xiu Jianfeng <xiujianfeng@huawei.com>

slab_alloc_node() should be __slab_alloc_node().

Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
---
 mm/slub.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Vlastimil Babka April 4, 2024, 3:55 p.m. UTC | #1
On 3/25/24 1:22 PM, Xiu Jianfeng wrote:
> From: Xiu Jianfeng <xiujianfeng@huawei.com>
> 
> slab_alloc_node() should be __slab_alloc_node().
> 
> Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>

Thanks, added to slab/for-next

> ---
>  mm/slub.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/mm/slub.c b/mm/slub.c
> index 7b68a3451eb9..33ac769a69b9 100644
> --- a/mm/slub.c
> +++ b/mm/slub.c
> @@ -4446,7 +4446,7 @@ static __always_inline void do_slab_free(struct kmem_cache *s,
>  	c = raw_cpu_ptr(s->cpu_slab);
>  	tid = READ_ONCE(c->tid);
>  
> -	/* Same with comment on barrier() in slab_alloc_node() */
> +	/* Same with comment on barrier() in __slab_alloc_node() */
>  	barrier();
>  
>  	if (unlikely(slab != c->slab)) {
diff mbox series

Patch

diff --git a/mm/slub.c b/mm/slub.c
index 7b68a3451eb9..33ac769a69b9 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -4446,7 +4446,7 @@  static __always_inline void do_slab_free(struct kmem_cache *s,
 	c = raw_cpu_ptr(s->cpu_slab);
 	tid = READ_ONCE(c->tid);
 
-	/* Same with comment on barrier() in slab_alloc_node() */
+	/* Same with comment on barrier() in __slab_alloc_node() */
 	barrier();
 
 	if (unlikely(slab != c->slab)) {