diff options
Diffstat (limited to 'include/linux/nfsd/state.h')
-rw-r--r-- | include/linux/nfsd/state.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/nfsd/state.h b/include/linux/nfsd/state.h index 90829db76861..f1edb1d98523 100644 --- a/include/linux/nfsd/state.h +++ b/include/linux/nfsd/state.h | |||
@@ -99,9 +99,22 @@ struct nfs4_callback { | |||
99 | struct rpc_clnt * cb_client; | 99 | struct rpc_clnt * cb_client; |
100 | }; | 100 | }; |
101 | 101 | ||
102 | /* Maximum number of pages per slot cache entry */ | ||
103 | #define NFSD_PAGES_PER_SLOT 1 | ||
104 | |||
105 | struct nfsd4_cache_entry { | ||
106 | __be32 ce_status; | ||
107 | struct kvec ce_datav; /* encoded NFSv4.1 data in rq_res.head[0] */ | ||
108 | struct page *ce_respages[NFSD_PAGES_PER_SLOT + 1]; | ||
109 | short ce_resused; | ||
110 | int ce_opcnt; | ||
111 | int ce_rpchdrlen; | ||
112 | }; | ||
113 | |||
102 | struct nfsd4_slot { | 114 | struct nfsd4_slot { |
103 | bool sl_inuse; | 115 | bool sl_inuse; |
104 | u32 sl_seqid; | 116 | u32 sl_seqid; |
117 | struct nfsd4_cache_entry sl_cache_entry; | ||
105 | }; | 118 | }; |
106 | 119 | ||
107 | struct nfsd4_session { | 120 | struct nfsd4_session { |