From: Wei Yang Date: Tue, 5 Mar 2019 23:43:10 +0000 (-0800) Subject: mm, slub: make the comment of put_cpu_partial() complete X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9234bae9b252bbc231abcabfa644a4eb9724250c;p=linux.git mm, slub: make the comment of put_cpu_partial() complete There are two cases when put_cpu_partial() is invoked. * __slab_free * get_partial_node This patch just makes it cover these two cases. Link: http://lkml.kernel.org/r/20181025094437.18951-3-richard.weiyang@gmail.com Signed-off-by: Wei Yang Acked-by: Christoph Lameter Cc: Pekka Enberg Cc: David Rientjes Cc: Joonsoo Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/slub.c b/mm/slub.c index 037a8ca7f7caa..d8b1eee2dd862 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -2253,8 +2253,8 @@ static void unfreeze_partials(struct kmem_cache *s, } /* - * Put a page that was just frozen (in __slab_free) into a partial page - * slot if available. + * Put a page that was just frozen (in __slab_free|get_partial_node) into a + * partial page slot if available. * * If we did not find a slot then simply move all the partials to the * per node partial list.