diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-01-03 03:55:16 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-01-06 14:58:44 -0500 |
commit | 911d1aaf26fc4d771174d98fcab710a44e2a5fa0 (patch) | |
tree | e16df0f68093d2dc0abd5f55c2d46ff7705fffb8 /include/linux | |
parent | 864472e9b8fa76ffaad17dfcb84d79e16df6828c (diff) |
NFSv4: locking XDR cleanup
Get rid of some unnecessary intermediate structures
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/nfs_xdr.h | 52 |
1 files changed, 24 insertions, 28 deletions
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h index 518cfa5cd024..b8b0eed98ec9 100644 --- a/include/linux/nfs_xdr.h +++ b/include/linux/nfs_xdr.h | |||
@@ -165,50 +165,46 @@ struct nfs_closeres { | |||
165 | * * Arguments to the lock,lockt, and locku call. | 165 | * * Arguments to the lock,lockt, and locku call. |
166 | * */ | 166 | * */ |
167 | struct nfs_lowner { | 167 | struct nfs_lowner { |
168 | __u64 clientid; | 168 | __u64 clientid; |
169 | u32 id; | 169 | u32 id; |
170 | }; | 170 | }; |
171 | 171 | ||
172 | struct nfs_lock_opargs { | 172 | struct nfs_lock_args { |
173 | struct nfs_fh * fh; | ||
174 | struct file_lock * fl; | ||
173 | struct nfs_seqid * lock_seqid; | 175 | struct nfs_seqid * lock_seqid; |
174 | nfs4_stateid * lock_stateid; | 176 | nfs4_stateid * lock_stateid; |
175 | struct nfs_seqid * open_seqid; | 177 | struct nfs_seqid * open_seqid; |
176 | nfs4_stateid * open_stateid; | 178 | nfs4_stateid * open_stateid; |
177 | struct nfs_lowner lock_owner; | 179 | struct nfs_lowner lock_owner; |
178 | __u32 reclaim; | 180 | unsigned char block : 1; |
179 | __u32 new_lock_owner; | 181 | unsigned char reclaim : 1; |
182 | unsigned char new_lock_owner : 1; | ||
183 | }; | ||
184 | |||
185 | struct nfs_lock_res { | ||
186 | nfs4_stateid stateid; | ||
180 | }; | 187 | }; |
181 | 188 | ||
182 | struct nfs_locku_opargs { | 189 | struct nfs_locku_args { |
190 | struct nfs_fh * fh; | ||
191 | struct file_lock * fl; | ||
183 | struct nfs_seqid * seqid; | 192 | struct nfs_seqid * seqid; |
184 | nfs4_stateid * stateid; | 193 | nfs4_stateid * stateid; |
185 | }; | 194 | }; |
186 | 195 | ||
187 | struct nfs_lockargs { | 196 | struct nfs_locku_res { |
188 | struct nfs_fh * fh; | 197 | nfs4_stateid stateid; |
189 | __u32 type; | ||
190 | __u64 offset; | ||
191 | __u64 length; | ||
192 | union { | ||
193 | struct nfs_lock_opargs *lock; /* LOCK */ | ||
194 | struct nfs_lowner *lockt; /* LOCKT */ | ||
195 | struct nfs_locku_opargs *locku; /* LOCKU */ | ||
196 | } u; | ||
197 | }; | 198 | }; |
198 | 199 | ||
199 | struct nfs_lock_denied { | 200 | struct nfs_lockt_args { |
200 | __u64 offset; | 201 | struct nfs_fh * fh; |
201 | __u64 length; | 202 | struct file_lock * fl; |
202 | __u32 type; | 203 | struct nfs_lowner lock_owner; |
203 | struct nfs_lowner owner; | ||
204 | }; | 204 | }; |
205 | 205 | ||
206 | struct nfs_lockres { | 206 | struct nfs_lockt_res { |
207 | union { | 207 | struct file_lock * denied; /* LOCK, LOCKT failed */ |
208 | nfs4_stateid stateid;/* LOCK success, LOCKU */ | ||
209 | struct nfs_lock_denied denied; /* LOCK failed, LOCKT success */ | ||
210 | } u; | ||
211 | const struct nfs_server * server; | ||
212 | }; | 208 | }; |
213 | 209 | ||
214 | struct nfs4_delegreturnargs { | 210 | struct nfs4_delegreturnargs { |