aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/nfsd/nfssvc.c2
-rw-r--r--include/linux/nfsd/nfsd.h3
2 files changed, 2 insertions, 3 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)
236 */ 236 */
237static void set_max_drc(void) 237static void set_max_drc(void)
238{ 238{
239 /* The percent of nr_free_buffer_pages used by the V4.1 server DRC */
240 #define NFSD_DRC_SIZE_SHIFT 7
239 nfsd_serv->sv_drc_max_pages = nr_free_buffer_pages() 241 nfsd_serv->sv_drc_max_pages = nr_free_buffer_pages()
240 >> NFSD_DRC_SIZE_SHIFT; 242 >> NFSD_DRC_SIZE_SHIFT;
241 nfsd_serv->sv_drc_pages_used = 0; 243 nfsd_serv->sv_drc_pages_used = 0;
diff --git a/include/linux/nfsd/nfsd.h b/include/linux/nfsd/nfsd.h
index 0ec4d142c503..2b49d676d0c9 100644
--- a/include/linux/nfsd/nfsd.h
+++ b/include/linux/nfsd/nfsd.h
@@ -333,9 +333,6 @@ extern struct timeval nfssvc_boot;
333#define NFSD_LEASE_TIME (nfs4_lease_time()) 333#define NFSD_LEASE_TIME (nfs4_lease_time())
334#define NFSD_LAUNDROMAT_MINTIMEOUT 10 /* seconds */ 334#define NFSD_LAUNDROMAT_MINTIMEOUT 10 /* seconds */
335 335
336/* The percent of nr_free_buffer_pages used by the V4.1 server DRC */
337#define NFSD_DRC_SIZE_SHIFT 7
338
339/* 336/*
340 * The following attributes are currently not supported by the NFSv4 server: 337 * The following attributes are currently not supported by the NFSv4 server:
341 * ARCHIVE (deprecated anyway) 338 * ARCHIVE (deprecated anyway)