Commit 9234bae9 authored by Wei Yang's avatar Wei Yang Committed by Linus Torvalds

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.comSigned-off-by: default avatarWei Yang <richard.weiyang@gmail.com>
Acked-by: default avatarChristoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 52d1e606
...@@ -2253,8 +2253,8 @@ static void unfreeze_partials(struct kmem_cache *s, ...@@ -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 * Put a page that was just frozen (in __slab_free|get_partial_node) into a
* slot if available. * partial page slot if available.
* *
* If we did not find a slot then simply move all the partials to the * If we did not find a slot then simply move all the partials to the
* per node partial list. * per node partial list.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment