Commit 70b6d25e authored by Chen Tao's avatar Chen Tao Committed by Linus Torvalds

mm: fix some comments formatting

Correct one function name "get_partials" with "get_partial".  Update the
old struct name of list3 with kmem_cache_node.
Signed-off-by: default avatarChen Tao <chentao3@hotmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Reviewed-by: default avatarMike Rapoport <rppt@linux.ibm.com>
Link: https://lkml.kernel.org/r/Message-ID:
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 0e9aa675
...@@ -1062,7 +1062,7 @@ int slab_prepare_cpu(unsigned int cpu) ...@@ -1062,7 +1062,7 @@ int slab_prepare_cpu(unsigned int cpu)
* Even if all the cpus of a node are down, we don't free the * Even if all the cpus of a node are down, we don't free the
* kmem_cache_node of any cache. This to avoid a race between cpu_down, and * kmem_cache_node of any cache. This to avoid a race between cpu_down, and
* a kmalloc allocation from another cpu for memory from the node of * a kmalloc allocation from another cpu for memory from the node of
* the cpu going down. The list3 structure is usually allocated from * the cpu going down. The kmem_cache_node structure is usually allocated from
* kmem_cache_create() and gets destroyed at kmem_cache_destroy(). * kmem_cache_create() and gets destroyed at kmem_cache_destroy().
*/ */
int slab_dead_cpu(unsigned int cpu) int slab_dead_cpu(unsigned int cpu)
......
...@@ -1956,7 +1956,7 @@ static void *get_partial_node(struct kmem_cache *s, struct kmem_cache_node *n, ...@@ -1956,7 +1956,7 @@ static void *get_partial_node(struct kmem_cache *s, struct kmem_cache_node *n,
/* /*
* Racy check. If we mistakenly see no partial slabs then we * Racy check. If we mistakenly see no partial slabs then we
* just allocate an empty slab. If we mistakenly try to get a * just allocate an empty slab. If we mistakenly try to get a
* partial slab and there is none available then get_partials() * partial slab and there is none available then get_partial()
* will return NULL. * will return NULL.
*/ */
if (!n || !n->nr_partial) if (!n || !n->nr_partial)
......
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