aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWang Sheng-Hui <shhuiw@gmail.com>2014-08-06 19:04:46 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-06 21:01:15 -0400
commit8a7d9b4306258e092afaae3c663661d22bf91f5c (patch)
treeb28c9644bf084a235b14897573e6bd4c9ce9321f
parent928cec9cd6db53a68f54bc9ef1c54c674ba1c6bb (diff)
mm/slab.c: fix comments
Current struct kmem_cache has no 'lock' field, and slab page is managed by struct kmem_cache_node, which has 'list_lock' field. Clean up the related comment. Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com> Cc: 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/slab.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 1351725f7936..2e60bf3dedbb 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -1611,7 +1611,8 @@ slab_out_of_memory(struct kmem_cache *cachep, gfp_t gfpflags, int nodeid)
1611} 1611}
1612 1612
1613/* 1613/*
1614 * Interface to system's page allocator. No need to hold the cache-lock. 1614 * Interface to system's page allocator. No need to hold the
1615 * kmem_cache_node ->list_lock.
1615 * 1616 *
1616 * If we requested dmaable memory, we will get it. Even if we 1617 * If we requested dmaable memory, we will get it. Even if we
1617 * did not request dmaable memory, we might get it, but that 1618 * did not request dmaable memory, we might get it, but that
@@ -1913,9 +1914,9 @@ static void slab_destroy_debugcheck(struct kmem_cache *cachep,
1913 * @cachep: cache pointer being destroyed 1914 * @cachep: cache pointer being destroyed
1914 * @page: page pointer being destroyed 1915 * @page: page pointer being destroyed
1915 * 1916 *
1916 * Destroy all the objs in a slab, and release the mem back to the system. 1917 * Destroy all the objs in a slab page, and release the mem back to the system.
1917 * Before calling the slab must have been unlinked from the cache. The 1918 * Before calling the slab page must have been unlinked from the cache. The
1918 * cache-lock is not held/needed. 1919 * kmem_cache_node ->list_lock is not held/needed.
1919 */ 1920 */
1920static void slab_destroy(struct kmem_cache *cachep, struct page *page) 1921static void slab_destroy(struct kmem_cache *cachep, struct page *page)
1921{ 1922{