aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-01-15 16:01:14 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2011-01-15 16:01:14 -0500
commit1b59be2a6cdcb5a12e18d8315c07c94a624de48f (patch)
tree5cf48d9f94d85e9b1f984610b6868ad100ca1916 /mm/slab.c
parentf9ee7f60d6f37ae0184812b4c59b3869f875768b (diff)
parent2ed1c5257b5d669df2a64bd53e61dc19c7d936cd (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/slab.c')
-rw-r--r--mm/slab.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 264037449f08..37961d1f584f 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -284,7 +284,7 @@ struct kmem_list3 {
284 * Need this for bootstrapping a per node allocator. 284 * Need this for bootstrapping a per node allocator.
285 */ 285 */
286#define NUM_INIT_LISTS (3 * MAX_NUMNODES) 286#define NUM_INIT_LISTS (3 * MAX_NUMNODES)
287struct kmem_list3 __initdata initkmem_list3[NUM_INIT_LISTS]; 287static struct kmem_list3 __initdata initkmem_list3[NUM_INIT_LISTS];
288#define CACHE_CACHE 0 288#define CACHE_CACHE 0
289#define SIZE_AC MAX_NUMNODES 289#define SIZE_AC MAX_NUMNODES
290#define SIZE_L3 (2 * MAX_NUMNODES) 290#define SIZE_L3 (2 * MAX_NUMNODES)
@@ -4053,7 +4053,7 @@ static int enable_cpucache(struct kmem_cache *cachep, gfp_t gfp)
4053 * necessary. Note that the l3 listlock also protects the array_cache 4053 * necessary. Note that the l3 listlock also protects the array_cache
4054 * if drain_array() is used on the shared array. 4054 * if drain_array() is used on the shared array.
4055 */ 4055 */
4056void drain_array(struct kmem_cache *cachep, struct kmem_list3 *l3, 4056static void drain_array(struct kmem_cache *cachep, struct kmem_list3 *l3,
4057 struct array_cache *ac, int force, int node) 4057 struct array_cache *ac, int force, int node)
4058{ 4058{
4059 int tofree; 4059 int tofree;
@@ -4317,7 +4317,7 @@ static const struct seq_operations slabinfo_op = {
4317 * @count: data length 4317 * @count: data length
4318 * @ppos: unused 4318 * @ppos: unused
4319 */ 4319 */
4320ssize_t slabinfo_write(struct file *file, const char __user * buffer, 4320static ssize_t slabinfo_write(struct file *file, const char __user *buffer,
4321 size_t count, loff_t *ppos) 4321 size_t count, loff_t *ppos)
4322{ 4322{
4323 char kbuf[MAX_SLABINFO_WRITE + 1], *tmp; 4323 char kbuf[MAX_SLABINFO_WRITE + 1], *tmp;