diff options
Diffstat (limited to 'fs/quota')
-rw-r--r-- | fs/quota/dquot.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index 9a702e193538..13eee847605c 100644 --- a/fs/quota/dquot.c +++ b/fs/quota/dquot.c | |||
@@ -719,9 +719,8 @@ static int shrink_dqcache_memory(struct shrinker *shrink, | |||
719 | prune_dqcache(nr); | 719 | prune_dqcache(nr); |
720 | spin_unlock(&dq_list_lock); | 720 | spin_unlock(&dq_list_lock); |
721 | } | 721 | } |
722 | return ((unsigned) | 722 | return vfs_pressure_ratio( |
723 | percpu_counter_read_positive(&dqstats.counter[DQST_FREE_DQUOTS]) | 723 | percpu_counter_read_positive(&dqstats.counter[DQST_FREE_DQUOTS])); |
724 | /100) * sysctl_vfs_cache_pressure; | ||
725 | } | 724 | } |
726 | 725 | ||
727 | static struct shrinker dqcache_shrinker = { | 726 | static struct shrinker dqcache_shrinker = { |