diff options
Diffstat (limited to 'fs/dcache.c')
-rw-r--r-- | fs/dcache.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/dcache.c b/fs/dcache.c index 2593153471cf..44e5652b2664 100644 --- a/fs/dcache.c +++ b/fs/dcache.c | |||
@@ -1188,15 +1188,11 @@ static enum lru_status dentry_lru_isolate_shrink(struct list_head *item, | |||
1188 | */ | 1188 | */ |
1189 | void shrink_dcache_sb(struct super_block *sb) | 1189 | void shrink_dcache_sb(struct super_block *sb) |
1190 | { | 1190 | { |
1191 | long freed; | ||
1192 | |||
1193 | do { | 1191 | do { |
1194 | LIST_HEAD(dispose); | 1192 | LIST_HEAD(dispose); |
1195 | 1193 | ||
1196 | freed = list_lru_walk(&sb->s_dentry_lru, | 1194 | list_lru_walk(&sb->s_dentry_lru, |
1197 | dentry_lru_isolate_shrink, &dispose, 1024); | 1195 | dentry_lru_isolate_shrink, &dispose, 1024); |
1198 | |||
1199 | this_cpu_sub(nr_dentry_unused, freed); | ||
1200 | shrink_dentry_list(&dispose); | 1196 | shrink_dentry_list(&dispose); |
1201 | } while (list_lru_count(&sb->s_dentry_lru) > 0); | 1197 | } while (list_lru_count(&sb->s_dentry_lru) > 0); |
1202 | } | 1198 | } |