Messages in this thread Patch in this message | | | From | Nigel Cunningham <> | Subject | [PATCH 3/19] TuxOnIce: Make drop_pagecache non-static and declared in mm.h | Date | Thu, 7 May 2009 00:38:59 +1000 |
| |
Make the drop_pagecache function non-static, so that TuxOnIce can provide users with the option to drop caches and save whatever is left over.
Signed-off-by: Nigel Cunningham <nigel@tuxonice.net> --- fs/drop_caches.c | 2 +- include/linux/mm.h | 1 + 2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/fs/drop_caches.c b/fs/drop_caches.c index b6a719a..e2f2799 100644 --- a/fs/drop_caches.c +++ b/fs/drop_caches.c @@ -33,7 +33,7 @@ static void drop_pagecache_sb(struct super_block *sb) iput(toput_inode); } -static void drop_pagecache(void) +void drop_pagecache(void) { struct super_block *sb; diff --git a/include/linux/mm.h b/include/linux/mm.h index 3daeccb..c4199cd 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -1298,6 +1298,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); +void drop_pagecache(void); #ifndef CONFIG_MMU #define randomize_va_space 0 -- 1.5.6.3
| |