]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/nfs/dir.c
super: fix calculation of shrinkable objects for small numbers
[karo-tx-linux.git] / fs / nfs / dir.c
index e79bc6ce828e79b8cd3f4f6795de20f2c3ceb675..813ef257154582c1776473eb8c6ad01df05da30d 100644 (file)
@@ -2046,7 +2046,7 @@ remove_lru_entry:
        }
        spin_unlock(&nfs_access_lru_lock);
        nfs_access_free_list(&head);
-       return (atomic_long_read(&nfs_access_nr_entries) / 100) * sysctl_vfs_cache_pressure;
+       return vfs_pressure_ratio(atomic_long_read(&nfs_access_nr_entries));
 }
 
 static void __nfs_access_zap_cache(struct nfs_inode *nfsi, struct list_head *head)