Skip to contentSkip to conversation

mm/slab.c: Update outdated kmem_list3 in a comment

PATCH Applied Xiao Yang 2 participants 3 messages Jul 22, 2020 – Jul 30, 2020 Memory management

lore
Share & tools
lore

Xiao Yang

author
#0 lore raw

PATCH 1/1 mm/slab.c: Update outdated kmem_list3 in a comment

kmem_list3 has been renamed to kmem_cache_node long long ago so update it.

References:
'6744f087ba2a ("slab: Common name for the per node structures")' 'ce8eb6c424c7 ("slab: Rename list3/l3 to node")'

---
 mm/slab.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/slab.c +1 -1
index 9350062ffc1a..a7988aeb9bc3 100644
@@ -1050,7 +1050,7 @@ int slab_prepare_cpu(unsigned int cpu)
  * offline.
  *
  * Even if all the cpus of a node are down, we don't free the
- * kmem_list3 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
  * the cpu going down.  The list3 structure is usually allocated from
  * kmem_cache_create() and gets destroyed at kmem_cache_destroy().
Signature · 1 line
2.21.0
author
#1 lore raw

Hi,

Ping.

Quoted 25 lines · Xiao Yang

kmem_list3 has been renamed to kmem_cache_node long long ago so update it.

References:
'6744f087ba2a ("slab: Common name for the per node structures")' 'ce8eb6c424c7 ("slab: Rename list3/l3 to node")'

---
 mm/slab.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/slab.c +1 -1
index 9350062ffc1a..a7988aeb9bc3 100644
@@ -1050,7 +1050,7 @@ int slab_prepare_cpu(unsigned int cpu)
  * offline.
  *
  * Even if all the cpus of a node are down, we don't free the
- * kmem_list3 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
  * the cpu going down.  The list3 structure is usually allocated from
  * kmem_cache_create() and gets destroyed at kmem_cache_destroy().