aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/slub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/slub.c b/mm/slub.c
index bec0e355fba..96e69071782 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -3821,7 +3821,7 @@ static ssize_t show_slab_objects(struct kmem_cache *s,
3821 } 3821 }
3822 } 3822 }
3823 3823
3824 down_read(&slub_lock); 3824 lock_memory_hotplug();
3825#ifdef CONFIG_SLUB_DEBUG 3825#ifdef CONFIG_SLUB_DEBUG
3826 if (flags & SO_ALL) { 3826 if (flags & SO_ALL) {
3827 for_each_node_state(node, N_NORMAL_MEMORY) { 3827 for_each_node_state(node, N_NORMAL_MEMORY) {
@@ -3862,7 +3862,7 @@ static ssize_t show_slab_objects(struct kmem_cache *s,
3862 x += sprintf(buf + x, " N%d=%lu", 3862 x += sprintf(buf + x, " N%d=%lu",
3863 node, nodes[node]); 3863 node, nodes[node]);
3864#endif 3864#endif
3865 up_read(&slub_lock); 3865 unlock_memory_hotplug();
3866 kfree(nodes); 3866 kfree(nodes);
3867 return x + sprintf(buf + x, "\n"); 3867 return x + sprintf(buf + x, "\n");
3868} 3868}