mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
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>
This commit is contained in:
parent
52d1e606ee
commit
9234bae9b2
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue