diff options
-rw-r--r-- | fs/nfsd/nfssvc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c index e9eb408ae2a8..aacf1f4b9fb5 100644 --- a/fs/nfsd/nfssvc.c +++ b/fs/nfsd/nfssvc.c | |||
@@ -314,7 +314,7 @@ static int nfsd_get_default_max_blksize(void) | |||
314 | unsigned long ret; | 314 | unsigned long ret; |
315 | 315 | ||
316 | si_meminfo(&i); | 316 | si_meminfo(&i); |
317 | target = i.totalram << PAGE_SHIFT; | 317 | target = (i.totalram - i.totalhigh) << PAGE_SHIFT; |
318 | /* | 318 | /* |
319 | * Aim for 1/4096 of memory per thread This gives 1MB on 4Gig | 319 | * Aim for 1/4096 of memory per thread This gives 1MB on 4Gig |
320 | * machines, but only uses 32K on 128M machines. Bottom out at | 320 | * machines, but only uses 32K on 128M machines. Bottom out at |