aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfssvc.c
diff options
context:
space:
mode:
authorAndy Adamson <andros@netapp.com>2009-07-27 19:06:45 -0400
committerJ. Bruce Fields <bfields@citi.umich.edu>2009-07-28 14:29:59 -0400
commit6a14dd1a4fe1bd00e02a96c97015cedfddda58ed (patch)
tree0b1647f5ee7562d0be28c509f67215e9efdfc5e2 /fs/nfsd/nfssvc.c
parentb101ebbc39f50f8af4657e517954ca874b13b364 (diff)
downloadkernel_samsung_smdk4412-6a14dd1a4fe1bd00e02a96c97015cedfddda58ed.zip
kernel_samsung_smdk4412-6a14dd1a4fe1bd00e02a96c97015cedfddda58ed.tar.gz
kernel_samsung_smdk4412-6a14dd1a4fe1bd00e02a96c97015cedfddda58ed.tar.bz2
nfsd41: reserve less memory for DRC
Also remove a slightly misleading comment. Signed-off-by: Andy Adamson <andros@netapp.com> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/nfsd/nfssvc.c')
-rw-r--r--fs/nfsd/nfssvc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c
index 78d8fcd..9be2a19 100644
--- a/fs/nfsd/nfssvc.c
+++ b/fs/nfsd/nfssvc.c
@@ -246,8 +246,7 @@ void nfsd_reset_versions(void)
*/
static void set_max_drc(void)
{
- /* The percent of nr_free_buffer_pages used by the V4.1 server DRC */
- #define NFSD_DRC_SIZE_SHIFT 7
+ #define NFSD_DRC_SIZE_SHIFT 10
nfsd_drc_max_pages = nr_free_buffer_pages()
>> NFSD_DRC_SIZE_SHIFT;
nfsd_drc_pages_used = 0;