fs: Export drop_pagecache_sb symbol
authorErez Zadok <ezkcs.sunysb.edu>
Sun, 18 Mar 2007 23:24:29 +0000 (19:24 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 13 Jan 2009 01:42:58 +0000 (20:42 -0500)
Signed-off-by: Erez Zadok <ezkcs.sunysb.edu>
Signed-off-by: Josef 'Jeff' Sipek <jsipekcs.sunysb.edu>
fs/drop_caches.c
include/linux/mm.h

index 3e5637fc377962e1aaca5665f3e03d89366673e3..d5ced67a736d36e309706ee4be1dcf09c89d8dea 100644 (file)
@@ -3,6 +3,7 @@
  */
 
 #include <linux/kernel.h>
+#include <linux/module.h>
 #include <linux/mm.h>
 #include <linux/fs.h>
 #include <linux/writeback.h>
@@ -12,7 +13,7 @@
 /* A global variable is a bit ugly, but it keeps the code simple */
 int sysctl_drop_caches;
 
-static void drop_pagecache_sb(struct super_block *sb)
+void drop_pagecache_sb(struct super_block *sb)
 {
        struct inode *inode, *toput_inode = NULL;
 
@@ -32,6 +33,7 @@ static void drop_pagecache_sb(struct super_block *sb)
        spin_unlock(&inode_lock);
        iput(toput_inode);
 }
+EXPORT_SYMBOL(drop_pagecache_sb);
 
 static void drop_pagecache(void)
 {
index 586a943cab018647da208582bc1f19e0dc485f1d..f9e9d0f059f8f858cacade107db5ae30b1c55ec6 100644 (file)
@@ -1244,6 +1244,7 @@ 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);
+extern void drop_pagecache_sb(struct super_block *);
 
 #ifndef CONFIG_MMU
 #define randomize_va_space 0