fs/ufs/super.c: fix potential race condition
[firefly-linux-kernel-4.4.55.git] / fs / drop_caches.c
index 2bc2c87f35e7a251628da1390f288b0cf8f2e721..5718cb9f7273e83a2fe6c7775dcf76c636dd908a 100644 (file)
@@ -37,20 +37,6 @@ static void drop_pagecache_sb(struct super_block *sb, void *unused)
        iput(toput_inode);
 }
 
-static void drop_slab(void)
-{
-       int nr_objects;
-
-       do {
-               int nid;
-
-               nr_objects = 0;
-               for_each_online_node(nid)
-                       nr_objects += shrink_node_slabs(GFP_KERNEL, nid,
-                                                       1000, 1000);
-       } while (nr_objects > 10);
-}
-
 int drop_caches_sysctl_handler(struct ctl_table *table, int write,
        void __user *buffer, size_t *length, loff_t *ppos)
 {