diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-15 16:01:14 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-15 16:01:14 -0500 |
commit | 1b59be2a6cdcb5a12e18d8315c07c94a624de48f (patch) | |
tree | 5cf48d9f94d85e9b1f984610b6868ad100ca1916 /mm/slub.c | |
parent | f9ee7f60d6f37ae0184812b4c59b3869f875768b (diff) | |
parent | 2ed1c5257b5d669df2a64bd53e61dc19c7d936cd (diff) |
Merge branch 'slab/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6
* 'slab/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6:
Update Pekka's email address in MAINTAINERS
mm/slab.c: make local symbols static
slub: Avoid use of slub_lock in show_slab_objects()
memory hotplug: one more lock on memory hotplug
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 | } |