diff options
| author | Andy Adamson <andros@netapp.com> | 2009-07-27 19:09:19 -0400 |
|---|---|---|
| committer | J. Bruce Fields <bfields@citi.umich.edu> | 2009-07-28 14:30:05 -0400 |
| commit | 0c193054a4c1cf190d2f23e5e91bd14402e43912 (patch) | |
| tree | f2fc6efa35b0cfa621b43894e2dfd57762e65d0f /include/linux/nfsd | |
| parent | 6a14dd1a4fe1bd00e02a96c97015cedfddda58ed (diff) | |
nfsd41: hange from page to memory based drc limits
NFSD_SLOT_CACHE_SIZE is the size of all encoded operation responses
(excluding the sequence operation) that we want to cache.
For now, keep NFSD_SLOT_CACHE_SIZE at PAGE_SIZE. It will be reduced
when the DRC is changed from page based to memory based.
Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'include/linux/nfsd')
| -rw-r--r-- | include/linux/nfsd/nfsd.h | 4 | ||||
| -rw-r--r-- | include/linux/nfsd/state.h | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/nfsd/nfsd.h b/include/linux/nfsd/nfsd.h index 2571f856908f..2812ed52669d 100644 --- a/include/linux/nfsd/nfsd.h +++ b/include/linux/nfsd/nfsd.h | |||
| @@ -57,8 +57,8 @@ extern u32 nfsd_supported_minorversion; | |||
| 57 | extern struct mutex nfsd_mutex; | 57 | extern struct mutex nfsd_mutex; |
| 58 | extern struct svc_serv *nfsd_serv; | 58 | extern struct svc_serv *nfsd_serv; |
| 59 | extern spinlock_t nfsd_drc_lock; | 59 | extern spinlock_t nfsd_drc_lock; |
| 60 | extern unsigned int nfsd_drc_max_pages; | 60 | extern unsigned int nfsd_drc_max_mem; |
| 61 | extern unsigned int nfsd_drc_pages_used; | 61 | extern unsigned int nfsd_drc_mem_used; |
| 62 | 62 | ||
| 63 | extern struct seq_operations nfs_exports_op; | 63 | extern struct seq_operations nfs_exports_op; |
| 64 | 64 | ||
diff --git a/include/linux/nfsd/state.h b/include/linux/nfsd/state.h index 57ab2ed08459..a6c87d623891 100644 --- a/include/linux/nfsd/state.h +++ b/include/linux/nfsd/state.h | |||
| @@ -96,6 +96,7 @@ struct nfs4_cb_conn { | |||
| 96 | #define NFSD_MAX_SLOTS_PER_SESSION 128 | 96 | #define NFSD_MAX_SLOTS_PER_SESSION 128 |
| 97 | /* Maximum number of pages per slot cache entry */ | 97 | /* Maximum number of pages per slot cache entry */ |
| 98 | #define NFSD_PAGES_PER_SLOT 1 | 98 | #define NFSD_PAGES_PER_SLOT 1 |
| 99 | #define NFSD_SLOT_CACHE_SIZE PAGE_SIZE | ||
| 99 | /* Maximum number of operations per session compound */ | 100 | /* Maximum number of operations per session compound */ |
| 100 | #define NFSD_MAX_OPS_PER_COMPOUND 16 | 101 | #define NFSD_MAX_OPS_PER_COMPOUND 16 |
| 101 | 102 | ||
