aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/slub.c')
-rw-r--r--mm/slub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/slub.c b/mm/slub.c
index c7ef0070dd86..e15aa7f193c9 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -3797,7 +3797,7 @@ static ssize_t show_slab_objects(struct kmem_cache *s,
3797 } 3797 }
3798 } 3798 }
3799 3799
3800 down_read(&slub_lock); 3800 lock_memory_hotplug();
3801#ifdef CONFIG_SLUB_DEBUG 3801#ifdef CONFIG_SLUB_DEBUG
3802 if (flags & SO_ALL) { 3802 if (flags & SO_ALL) {
3803 for_each_node_state(node, N_NORMAL_MEMORY) { 3803 for_each_node_state(node, N_NORMAL_MEMORY) {
@@ -3838,7 +3838,7 @@ static ssize_t show_slab_objects(struct kmem_cache *s,
3838 x += sprintf(buf + x, " N%d=%lu", 3838 x += sprintf(buf + x, " N%d=%lu",
3839 node, nodes[node]); 3839 node, nodes[node]);
3840#endif 3840#endif
3841 up_read(&slub_lock); 3841 unlock_memory_hotplug();
3842 kfree(nodes); 3842 kfree(nodes);
3843 return x + sprintf(buf + x, "\n"); 3843 return x + sprintf(buf + x, "\n");
3844} 3844}