]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/mbcache.c
super: fix calculation of shrinkable objects for small numbers
[karo-tx-linux.git] / fs / mbcache.c
index 8c32ef3ba88e7ac25a197866a38c4590836f12be..5eb04767cb29c0cd7c9be618a2aa29d595995671 100644 (file)
@@ -189,7 +189,7 @@ mb_cache_shrink_fn(struct shrinker *shrink, struct shrink_control *sc)
        list_for_each_entry_safe(entry, tmp, &free_list, e_lru_list) {
                __mb_cache_entry_forget(entry, gfp_mask);
        }
-       return (count / 100) * sysctl_vfs_cache_pressure;
+       return vfs_pressure_ratio(count);
 }