mm, slub: make the comment of put_cpu_partial() complete
authorWei Yang <[email protected]>
Tue, 5 Mar 2019 23:43:10 +0000 (15:43 -0800)
committerLinus Torvalds <[email protected]>
Wed, 6 Mar 2019 05:07:15 +0000 (21:07 -0800)
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/[email protected]
Signed-off-by: Wei Yang <[email protected]>
Acked-by: Christoph Lameter <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/slub.c

index 037a8ca7f7caa1f906ece1404fef3c58c35e9328..d8b1eee2dd8622123be2df8b5dee6ec860015447 100644 (file)
--- 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.