aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
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;