aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/nfssvc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c
index 0603baad5426..6fa6340a5fb8 100644
--- a/fs/nfsd/nfssvc.c
+++ b/fs/nfsd/nfssvc.c
@@ -209,7 +209,7 @@ int nfsd_create_serv(void)
209 * Of course, this is only a default. 209 * Of course, this is only a default.
210 */ 210 */
211 nfsd_max_blksize = NFSSVC_MAXBLKSIZE; 211 nfsd_max_blksize = NFSSVC_MAXBLKSIZE;
212 i.totalram >>= 12; 212 i.totalram <<= PAGE_SHIFT - 12;
213 while (nfsd_max_blksize > i.totalram && 213 while (nfsd_max_blksize > i.totalram &&
214 nfsd_max_blksize >= 8*1024*2) 214 nfsd_max_blksize >= 8*1024*2)
215 nfsd_max_blksize /= 2; 215 nfsd_max_blksize /= 2;