aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd/cache.h')
-rw-r--r--fs/nfsd/cache.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/nfsd/cache.h b/fs/nfsd/cache.h
index 9c7232b45103..87fd1410b737 100644
--- a/fs/nfsd/cache.h
+++ b/fs/nfsd/cache.h
@@ -29,6 +29,8 @@ struct svc_cacherep {
29 u32 c_prot; 29 u32 c_prot;
30 u32 c_proc; 30 u32 c_proc;
31 u32 c_vers; 31 u32 c_vers;
32 unsigned int c_len;
33 __wsum c_csum;
32 unsigned long c_timestamp; 34 unsigned long c_timestamp;
33 union { 35 union {
34 struct kvec u_vec; 36 struct kvec u_vec;
@@ -73,6 +75,9 @@ enum {
73/* Cache entries expire after this time period */ 75/* Cache entries expire after this time period */
74#define RC_EXPIRE (120 * HZ) 76#define RC_EXPIRE (120 * HZ)
75 77
78/* Checksum this amount of the request */
79#define RC_CSUMLEN (256U)
80
76int nfsd_reply_cache_init(void); 81int nfsd_reply_cache_init(void);
77void nfsd_reply_cache_shutdown(void); 82void nfsd_reply_cache_shutdown(void);
78int nfsd_cache_lookup(struct svc_rqst *); 83int nfsd_cache_lookup(struct svc_rqst *);