author: Vladimir Davydov <vdavydov@parallels.com> 2015-02-12 14:58:47 -0800
committer: Linus Torvalds <torvalds@linux-foundation.org> 2015-02-12 18:54:08 -0800
commit: 503c358cf1925853195ee39ec437e51138bbb7df
parent: 10c1045f28e86ac90589a188f0be2d7a4347efdf
Commit Summary:
Diffstat:
1 file changed, 3 insertions, 4 deletions
diff --git a/fs/inode.c b/fs/inode.c
index 3a53b1da3fb8..524a32c2b0c6 100644
--- a/fs/inode.c
+++ b/fs/inode.c
@@ -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;
}