diff options
author | Benny Halevy <bhalevy@panasas.com> | 2009-04-06 12:00:36 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2009-04-06 09:17:53 -0700 |
commit | f0ad670d7061efad138df19aefe569263c4ea37b (patch) | |
tree | d68d7a2deb01814aa5c8e1d32b867010a3284bd2 /fs/nfsd/nfssvc.c | |
parent | 3ef1728898f0285c13aa6901f412b52835e23578 (diff) | |
download | linux-f0ad670d7061efad138df19aefe569263c4ea37b.tar.gz linux-f0ad670d7061efad138df19aefe569263c4ea37b.tar.bz2 linux-f0ad670d7061efad138df19aefe569263c4ea37b.zip |
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: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/nfsd/nfssvc.c')
-rw-r--r-- | fs/nfsd/nfssvc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c index e9d57734a348..469c931cca95 100644 --- a/fs/nfsd/nfssvc.c +++ b/fs/nfsd/nfssvc.c @@ -236,6 +236,8 @@ 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 nfsd_serv->sv_drc_max_pages = nr_free_buffer_pages() >> NFSD_DRC_SIZE_SHIFT; nfsd_serv->sv_drc_pages_used = 0; |