]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
fs/drop_caches.c: make 2 functions static
authorAdrian Bunk <bunk@kernel.org>
Tue, 29 Apr 2008 07:58:57 +0000 (00:58 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Apr 2008 15:06:00 +0000 (08:06 -0700)
Make the following needlessly global functions static:

- drop_pagecache()
- drop_slab()

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/drop_caches.c
include/linux/mm.h

index 59375efcf39d6769d94a6d77ef33a06054e4f4b9..e2c6b6500c783a286708e1127025a00b6453f7e0 100644 (file)
@@ -25,7 +25,7 @@ static void drop_pagecache_sb(struct super_block *sb)
        spin_unlock(&inode_lock);
 }
 
-void drop_pagecache(void)
+static void drop_pagecache(void)
 {
        struct super_block *sb;
 
@@ -45,7 +45,7 @@ restart:
        spin_unlock(&sb_lock);
 }
 
-void drop_slab(void)
+static void drop_slab(void)
 {
        int nr_objects;
 
index 8b7f4a5d4f6a5ce2e980a00ae3bc28b7898790e2..fef602d82722f534aa560884479215df99457630 100644 (file)
@@ -1230,8 +1230,6 @@ int drop_caches_sysctl_handler(struct ctl_table *, int, struct file *,
                                        void __user *, size_t *, loff_t *);
 unsigned long shrink_slab(unsigned long scanned, gfp_t gfp_mask,
                        unsigned long lru_pages);
-void drop_pagecache(void);
-void drop_slab(void);
 
 #ifndef CONFIG_MMU
 #define randomize_va_space 0