aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/drop_caches.c4
-rw-r--r--include/linux/mm.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/fs/drop_caches.c b/fs/drop_caches.c
index 59375efcf39d..e2c6b6500c78 100644
--- a/fs/drop_caches.c
+++ b/fs/drop_caches.c
@@ -25,7 +25,7 @@ static void drop_pagecache_sb(struct super_block *sb)
25 spin_unlock(&inode_lock); 25 spin_unlock(&inode_lock);
26} 26}
27 27
28void drop_pagecache(void) 28static void drop_pagecache(void)
29{ 29{
30 struct super_block *sb; 30 struct super_block *sb;
31 31
@@ -45,7 +45,7 @@ restart:
45 spin_unlock(&sb_lock); 45 spin_unlock(&sb_lock);
46} 46}
47 47
48void drop_slab(void) 48static void drop_slab(void)
49{ 49{
50 int nr_objects; 50 int nr_objects;
51 51
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 8b7f4a5d4f6a..fef602d82722 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -1230,8 +1230,6 @@ int drop_caches_sysctl_handler(struct ctl_table *, int, struct file *,
1230 void __user *, size_t *, loff_t *); 1230 void __user *, size_t *, loff_t *);
1231unsigned long shrink_slab(unsigned long scanned, gfp_t gfp_mask, 1231unsigned long shrink_slab(unsigned long scanned, gfp_t gfp_mask,
1232 unsigned long lru_pages); 1232 unsigned long lru_pages);
1233void drop_pagecache(void);
1234void drop_slab(void);
1235 1233
1236#ifndef CONFIG_MMU 1234#ifndef CONFIG_MMU
1237#define randomize_va_space 0 1235#define randomize_va_space 0