aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Yang <richard.weiyang@gmail.com>2019-03-05 18:43:10 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2019-03-06 00:07:15 -0500
commit9234bae9b252bbc231abcabfa644a4eb9724250c (patch)
treee28d30313e43c2b776bbf3a512816c7196b1d5d5
parent52d1e606ee733921e984770d47539a6bb91e8506 (diff)
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 <richard.weiyang@gmail.com> Acked-by: Christoph 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: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--mm/slub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/slub.c b/mm/slub.c
index 037a8ca7f7ca..d8b1eee2dd86 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -2253,8 +2253,8 @@ static void unfreeze_partials(struct kmem_cache *s,
2253} 2253}
2254 2254
2255/* 2255/*
2256 * Put a page that was just frozen (in __slab_free) into a partial page 2256 * Put a page that was just frozen (in __slab_free|get_partial_node) into a
2257 * slot if available. 2257 * partial page slot if available.
2258 * 2258 *
2259 * If we did not find a slot then simply move all the partials to the 2259 * If we did not find a slot then simply move all the partials to the
2260 * per node partial list. 2260 * per node partial list.