diff options
author | Pekka Enberg <penberg@kernel.org> | 2011-01-15 06:28:17 -0500 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2011-01-15 06:28:17 -0500 |
commit | 597fb188cbee2d371246e1669bbc6051bb666aa9 (patch) | |
tree | fd9cb605050ca15274cf391dc6bd4073d04808df /mm/slub.c | |
parent | 38567333a6dabd0f2b4150e9fb6dd8e3ba2985e5 (diff) | |
parent | 04d94879c8a4973b5499dc26b9d38acee8928791 (diff) |
Merge branch 'slub/hotplug' into slab/urgent
Diffstat (limited to 'mm/slub.c')
-rw-r--r-- | mm/slub.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | } |