Commit f0ad670d authored by Benny Halevy's avatar Benny Halevy Committed by J. Bruce Fields

nfsd41: define NFSD_DRC_SIZE_SHIFT in set_max_drc

Fixes the following compiler error:
fs/nfsd/nfssvc.c: In function 'set_max_drc':
fs/nfsd/nfssvc.c:240: error: 'NFSD_DRC_SIZE_SHIFT' undeclared

CONFIG_NFSD_V4 is not set
Reported-by: default avatarAlexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: default avatarBenny Halevy <bhalevy@panasas.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
parent 3ef17288
...@@ -236,6 +236,8 @@ void nfsd_reset_versions(void) ...@@ -236,6 +236,8 @@ 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 7
nfsd_serv->sv_drc_max_pages = nr_free_buffer_pages() nfsd_serv->sv_drc_max_pages = nr_free_buffer_pages()
>> NFSD_DRC_SIZE_SHIFT; >> NFSD_DRC_SIZE_SHIFT;
nfsd_serv->sv_drc_pages_used = 0; nfsd_serv->sv_drc_pages_used = 0;
......
...@@ -333,9 +333,6 @@ extern struct timeval nfssvc_boot; ...@@ -333,9 +333,6 @@ extern struct timeval nfssvc_boot;
#define NFSD_LEASE_TIME (nfs4_lease_time()) #define NFSD_LEASE_TIME (nfs4_lease_time())
#define NFSD_LAUNDROMAT_MINTIMEOUT 10 /* seconds */ #define NFSD_LAUNDROMAT_MINTIMEOUT 10 /* seconds */
/* The percent of nr_free_buffer_pages used by the V4.1 server DRC */
#define NFSD_DRC_SIZE_SHIFT 7
/* /*
* The following attributes are currently not supported by the NFSv4 server: * The following attributes are currently not supported by the NFSv4 server:
* ARCHIVE (deprecated anyway) * ARCHIVE (deprecated anyway)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment