Commit 07d45da6 authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds

fs/drop_caches.c: make 2 functions static

Make the following needlessly global functions static:

- drop_pagecache()
- drop_slab()
Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f11b00f3
...@@ -25,7 +25,7 @@ static void drop_pagecache_sb(struct super_block *sb) ...@@ -25,7 +25,7 @@ static void drop_pagecache_sb(struct super_block *sb)
spin_unlock(&inode_lock); spin_unlock(&inode_lock);
} }
void drop_pagecache(void) static void drop_pagecache(void)
{ {
struct super_block *sb; struct super_block *sb;
...@@ -45,7 +45,7 @@ restart: ...@@ -45,7 +45,7 @@ restart:
spin_unlock(&sb_lock); spin_unlock(&sb_lock);
} }
void drop_slab(void) static void drop_slab(void)
{ {
int nr_objects; int nr_objects;
......
...@@ -1230,8 +1230,6 @@ int drop_caches_sysctl_handler(struct ctl_table *, int, struct file *, ...@@ -1230,8 +1230,6 @@ int drop_caches_sysctl_handler(struct ctl_table *, int, struct file *,
void __user *, size_t *, loff_t *); void __user *, size_t *, loff_t *);
unsigned long shrink_slab(unsigned long scanned, gfp_t gfp_mask, unsigned long shrink_slab(unsigned long scanned, gfp_t gfp_mask,
unsigned long lru_pages); unsigned long lru_pages);
void drop_pagecache(void);
void drop_slab(void);
#ifndef CONFIG_MMU #ifndef CONFIG_MMU
#define randomize_va_space 0 #define randomize_va_space 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment