]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/inode.c
fs: consolidate {nr,free}_cached_objects args in shrink_control
[karo-tx-linux.git] / fs / inode.c
index 3a53b1da3fb8da0d0de438d9195bf07f2b64c909..524a32c2b0c6b795486418529871782dad55414d 100644 (file)
@@ -751,14 +751,13 @@ inode_lru_isolate(struct list_head *item, spinlock_t *lru_lock, void *arg)
  * to trim from the LRU. Inodes to be freed are moved to a temporary list and
  * then are freed outside inode_lock by dispose_list().
  */
-long prune_icache_sb(struct super_block *sb, unsigned long nr_to_scan,
-                    int nid)
+long prune_icache_sb(struct super_block *sb, struct shrink_control *sc)
 {
        LIST_HEAD(freeable);
        long freed;
 
-       freed = list_lru_walk_node(&sb->s_inode_lru, nid, inode_lru_isolate,
-                                      &freeable, &nr_to_scan);
+       freed = list_lru_shrink_walk(&sb->s_inode_lru, sc,
+                                    inode_lru_isolate, &freeable);
        dispose_list(&freeable);
        return freed;
 }