aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/nfsd
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@citi.umich.edu>2009-05-01 19:50:00 -0400
committerJ. Bruce Fields <bfields@citi.umich.edu>2009-05-01 19:50:00 -0400
commitb53d40c5070bffde1b2bcaf848412a50d8894794 (patch)
tree3f0e0f62997b437eb03678040393aa5e1fbfd315 /include/linux/nfsd
parentc237dc0303bcf6f4cc2e0efe4fe4e341c6f34dac (diff)
nfsd4: eliminate struct nfs4_cb_recall
The nfs4_cb_recall struct is used only in nfs4_delegation, so its pointer to the containing delegation is unnecessary--we could just use container_of(). But there's no real reason to have this a separate struct at all--just move these fields to nfs4_delegation. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'include/linux/nfsd')
-rw-r--r--include/linux/nfsd/state.h18
1 files changed, 5 insertions, 13 deletions
diff --git a/include/linux/nfsd/state.h b/include/linux/nfsd/state.h
index 563c367a3013..233b60d39b84 100644
--- a/include/linux/nfsd/state.h
+++ b/include/linux/nfsd/state.h
@@ -61,15 +61,6 @@ typedef struct {
61#define si_stateownerid si_opaque.so_stateownerid 61#define si_stateownerid si_opaque.so_stateownerid
62#define si_fileid si_opaque.so_fileid 62#define si_fileid si_opaque.so_fileid
63 63
64
65struct nfs4_cb_recall {
66 u32 cbr_ident;
67 int cbr_trunc;
68 stateid_t cbr_stateid;
69 struct knfsd_fh cbr_fh;
70 struct nfs4_delegation *cbr_dp;
71};
72
73struct nfs4_delegation { 64struct nfs4_delegation {
74 struct list_head dl_perfile; 65 struct list_head dl_perfile;
75 struct list_head dl_perclnt; 66 struct list_head dl_perclnt;
@@ -81,12 +72,13 @@ struct nfs4_delegation {
81 struct file *dl_vfs_file; 72 struct file *dl_vfs_file;
82 u32 dl_type; 73 u32 dl_type;
83 time_t dl_time; 74 time_t dl_time;
84 struct nfs4_cb_recall dl_recall; 75/* For recall: */
76 u32 dl_ident;
77 int dl_trunc;
78 stateid_t dl_stateid;
79 struct knfsd_fh dl_fh;
85}; 80};
86 81
87#define dl_stateid dl_recall.cbr_stateid
88#define dl_fh dl_recall.cbr_fh
89
90/* client delegation callback info */ 82/* client delegation callback info */
91struct nfs4_cb_conn { 83struct nfs4_cb_conn {
92 /* SETCLIENTID info */ 84 /* SETCLIENTID info */