aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/vfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd/vfs.c')
-rw-r--r--fs/nfsd/vfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
index e90f4a8a1d01..b8da5ddb3a0a 100644
--- a/fs/nfsd/vfs.c
+++ b/fs/nfsd/vfs.c
@@ -1916,7 +1916,7 @@ nfsd_racache_init(int cache_size)
1916 raparm_hash[i].pb_head = NULL; 1916 raparm_hash[i].pb_head = NULL;
1917 spin_lock_init(&raparm_hash[i].pb_lock); 1917 spin_lock_init(&raparm_hash[i].pb_lock);
1918 } 1918 }
1919 nperbucket = cache_size >> RAPARM_HASH_BITS; 1919 nperbucket = DIV_ROUND_UP(cache_size, RAPARM_HASH_SIZE);
1920 for (i = 0; i < cache_size - 1; i++) { 1920 for (i = 0; i < cache_size - 1; i++) {
1921 if (i % nperbucket == 0) 1921 if (i % nperbucket == 0)
1922 raparm_hash[j++].pb_head = raparml + i; 1922 raparm_hash[j++].pb_head = raparml + i;