linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] mm/slub: correct comment in do_slab_free()
@ 2024-03-25 12:22 Xiu Jianfeng
  2024-04-04 15:55 ` Vlastimil Babka
  0 siblings, 1 reply; 2+ messages in thread
From: Xiu Jianfeng @ 2024-03-25 12:22 UTC (permalink / raw)
  To: cl, penberg, rientjes, iamjoonsoo.kim, akpm, vbabka,
	roman.gushchin, 42.hyeyoo
  Cc: linux-mm, linux-kernel, xiujianfeng

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

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)) {
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] mm/slub: correct comment in do_slab_free()
  2024-03-25 12:22 [PATCH -next] mm/slub: correct comment in do_slab_free() Xiu Jianfeng
@ 2024-04-04 15:55 ` Vlastimil Babka
  0 siblings, 0 replies; 2+ messages in thread
From: Vlastimil Babka @ 2024-04-04 15:55 UTC (permalink / raw)
  To: Xiu Jianfeng, cl, penberg, rientjes, iamjoonsoo.kim, akpm,
	roman.gushchin, 42.hyeyoo
  Cc: linux-mm, linux-kernel, xiujianfeng

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-04-04 15:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-25 12:22 [PATCH -next] mm/slub: correct comment in do_slab_free() Xiu Jianfeng
2024-04-04 15:55 ` Vlastimil Babka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).