aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2')
-rw-r--r--fs/gfs2/glock.c2
-rw-r--r--fs/gfs2/quota.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c
index 722329cac98f..b782bb56085d 100644
--- a/fs/gfs2/glock.c
+++ b/fs/gfs2/glock.c
@@ -1462,7 +1462,7 @@ static int gfs2_shrink_glock_memory(struct shrinker *shrink,
1462 gfs2_scan_glock_lru(sc->nr_to_scan); 1462 gfs2_scan_glock_lru(sc->nr_to_scan);
1463 } 1463 }
1464 1464
1465 return (atomic_read(&lru_count) / 100) * sysctl_vfs_cache_pressure; 1465 return vfs_pressure_ratio(atomic_read(&lru_count));
1466} 1466}
1467 1467
1468static struct shrinker glock_shrinker = { 1468static struct shrinker glock_shrinker = {
diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c
index 3768c2f40e43..d550a5d6a05f 100644
--- a/fs/gfs2/quota.c
+++ b/fs/gfs2/quota.c
@@ -114,7 +114,7 @@ int gfs2_shrink_qd_memory(struct shrinker *shrink, struct shrink_control *sc)
114 spin_unlock(&qd_lru_lock); 114 spin_unlock(&qd_lru_lock);
115 115
116out: 116out:
117 return (atomic_read(&qd_lru_count) * sysctl_vfs_cache_pressure) / 100; 117 return vfs_pressure_ratio(atomic_read(&qd_lru_count));
118} 118}
119 119
120static u64 qd2index(struct gfs2_quota_data *qd) 120static u64 qd2index(struct gfs2_quota_data *qd)