diff options
author | J. Bruce Fields <bfields@citi.umich.edu> | 2010-02-18 11:27:24 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2010-04-02 16:28:11 -0400 |
commit | 227f98d98d2ed7929f41426adc21f57b927354a6 (patch) | |
tree | 8186b54a4f4e0cb5b3a7778f76854b00c7ce43db /fs/nfsd/state.h | |
parent | 788e69e548cc8d127b90f0de1f7b7e983d1d587a (diff) |
nfsd4: preallocate nfs4_rpc_args
Instead of allocating this small structure, just include it in the
delegation.
The nfsd4_callback structure isn't really necessary yet, but we plan to
add to it all the information necessary to perform a callback.
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/nfsd/state.h')
-rw-r--r-- | fs/nfsd/state.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h index fefeae27f25e..b85437982a8d 100644 --- a/fs/nfsd/state.h +++ b/fs/nfsd/state.h | |||
@@ -70,6 +70,15 @@ struct nfsd4_cb_sequence { | |||
70 | struct nfs4_client *cbs_clp; | 70 | struct nfs4_client *cbs_clp; |
71 | }; | 71 | }; |
72 | 72 | ||
73 | struct nfs4_rpc_args { | ||
74 | void *args_op; | ||
75 | struct nfsd4_cb_sequence args_seq; | ||
76 | }; | ||
77 | |||
78 | struct nfsd4_callback { | ||
79 | struct nfs4_rpc_args cb_args; | ||
80 | }; | ||
81 | |||
73 | struct nfs4_delegation { | 82 | struct nfs4_delegation { |
74 | struct list_head dl_perfile; | 83 | struct list_head dl_perfile; |
75 | struct list_head dl_perclnt; | 84 | struct list_head dl_perclnt; |
@@ -86,6 +95,7 @@ struct nfs4_delegation { | |||
86 | stateid_t dl_stateid; | 95 | stateid_t dl_stateid; |
87 | struct knfsd_fh dl_fh; | 96 | struct knfsd_fh dl_fh; |
88 | int dl_retries; | 97 | int dl_retries; |
98 | struct nfsd4_callback dl_recall; | ||
89 | }; | 99 | }; |
90 | 100 | ||
91 | /* client delegation callback info */ | 101 | /* client delegation callback info */ |