From 55675d91119a03786a9e61aae9bd6fefa2c2614e Mon Sep 17 00:00:00 2001 From: "J. Bruce Fields" Date: Mon, 30 Jan 2012 16:21:11 -0500 Subject: [PATCH] --- yaml --- r: 297424 b: refs/heads/master c: 508f92275624fc755104b17945bdc822936f1918 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/nfsd/nfssvc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index e5c6905f72d0..52e66db37e8d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 87b0fc7deb5feccf93b022f6a976e8441152dbb2 +refs/heads/master: 508f92275624fc755104b17945bdc822936f1918 diff --git a/trunk/fs/nfsd/nfssvc.c b/trunk/fs/nfsd/nfssvc.c index e9eb408ae2a8..aacf1f4b9fb5 100644 --- a/trunk/fs/nfsd/nfssvc.c +++ b/trunk/fs/nfsd/nfssvc.c @@ -314,7 +314,7 @@ static int nfsd_get_default_max_blksize(void) unsigned long ret; si_meminfo(&i); - target = i.totalram << PAGE_SHIFT; + target = (i.totalram - i.totalhigh) << PAGE_SHIFT; /* * Aim for 1/4096 of memory per thread This gives 1MB on 4Gig * machines, but only uses 32K on 128M machines. Bottom out at