aboutsummaryrefslogtreecommitdiffstats
path: root/fs/drop_caches.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/drop_caches.c')
-rw-r--r--fs/drop_caches.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/fs/drop_caches.c b/fs/drop_caches.c
index 2bc2c87f35e7..5718cb9f7273 100644
--- a/fs/drop_caches.c
+++ b/fs/drop_caches.c
@@ -37,20 +37,6 @@ static void drop_pagecache_sb(struct super_block *sb, void *unused)
37 iput(toput_inode); 37 iput(toput_inode);
38} 38}
39 39
40static void drop_slab(void)
41{
42 int nr_objects;
43
44 do {
45 int nid;
46
47 nr_objects = 0;
48 for_each_online_node(nid)
49 nr_objects += shrink_node_slabs(GFP_KERNEL, nid,
50 1000, 1000);
51 } while (nr_objects > 10);
52}
53
54int drop_caches_sysctl_handler(struct ctl_table *table, int write, 40int drop_caches_sysctl_handler(struct ctl_table *table, int write,
55 void __user *buffer, size_t *length, loff_t *ppos) 41 void __user *buffer, size_t *length, loff_t *ppos)
56{ 42{