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>
This commit is contained in:
Andy Adamson
2009-07-27 19:06:45 -04:00
committed by J. Bruce Fields
parent b101ebbc39
commit 6a14dd1a4f

View File

@@ -246,8 +246,7 @@ void nfsd_reset_versions(void)
*/ */
static void set_max_drc(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 10
#define NFSD_DRC_SIZE_SHIFT 7
nfsd_drc_max_pages = nr_free_buffer_pages() nfsd_drc_max_pages = nr_free_buffer_pages()
>> NFSD_DRC_SIZE_SHIFT; >> NFSD_DRC_SIZE_SHIFT;
nfsd_drc_pages_used = 0; nfsd_drc_pages_used = 0;