aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/delegation.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/delegation.c')
-rw-r--r--fs/nfs/delegation.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/fs/nfs/delegation.c b/fs/nfs/delegation.c
index 9540a316c05e..5a1105c258bd 100644
--- a/fs/nfs/delegation.c
+++ b/fs/nfs/delegation.c
@@ -114,7 +114,7 @@ void nfs_inode_reclaim_delegation(struct inode *inode, struct rpc_cred *cred, st
114 */ 114 */
115int nfs_inode_set_delegation(struct inode *inode, struct rpc_cred *cred, struct nfs_openres *res) 115int nfs_inode_set_delegation(struct inode *inode, struct rpc_cred *cred, struct nfs_openres *res)
116{ 116{
117 struct nfs4_client *clp = NFS_SERVER(inode)->nfs4_state; 117 struct nfs_client *clp = NFS_SERVER(inode)->nfs4_state;
118 struct nfs_inode *nfsi = NFS_I(inode); 118 struct nfs_inode *nfsi = NFS_I(inode);
119 struct nfs_delegation *delegation; 119 struct nfs_delegation *delegation;
120 int status = 0; 120 int status = 0;
@@ -176,7 +176,7 @@ static void nfs_msync_inode(struct inode *inode)
176 */ 176 */
177int __nfs_inode_return_delegation(struct inode *inode) 177int __nfs_inode_return_delegation(struct inode *inode)
178{ 178{
179 struct nfs4_client *clp = NFS_SERVER(inode)->nfs4_state; 179 struct nfs_client *clp = NFS_SERVER(inode)->nfs4_state;
180 struct nfs_inode *nfsi = NFS_I(inode); 180 struct nfs_inode *nfsi = NFS_I(inode);
181 struct nfs_delegation *delegation; 181 struct nfs_delegation *delegation;
182 int res = 0; 182 int res = 0;
@@ -208,7 +208,7 @@ int __nfs_inode_return_delegation(struct inode *inode)
208 */ 208 */
209void nfs_return_all_delegations(struct super_block *sb) 209void nfs_return_all_delegations(struct super_block *sb)
210{ 210{
211 struct nfs4_client *clp = NFS_SB(sb)->nfs4_state; 211 struct nfs_client *clp = NFS_SB(sb)->nfs4_state;
212 struct nfs_delegation *delegation; 212 struct nfs_delegation *delegation;
213 struct inode *inode; 213 struct inode *inode;
214 214
@@ -232,7 +232,7 @@ restart:
232 232
233int nfs_do_expire_all_delegations(void *ptr) 233int nfs_do_expire_all_delegations(void *ptr)
234{ 234{
235 struct nfs4_client *clp = ptr; 235 struct nfs_client *clp = ptr;
236 struct nfs_delegation *delegation; 236 struct nfs_delegation *delegation;
237 struct inode *inode; 237 struct inode *inode;
238 238
@@ -258,7 +258,7 @@ out:
258 module_put_and_exit(0); 258 module_put_and_exit(0);
259} 259}
260 260
261void nfs_expire_all_delegations(struct nfs4_client *clp) 261void nfs_expire_all_delegations(struct nfs_client *clp)
262{ 262{
263 struct task_struct *task; 263 struct task_struct *task;
264 264
@@ -276,7 +276,7 @@ void nfs_expire_all_delegations(struct nfs4_client *clp)
276/* 276/*
277 * Return all delegations following an NFS4ERR_CB_PATH_DOWN error. 277 * Return all delegations following an NFS4ERR_CB_PATH_DOWN error.
278 */ 278 */
279void nfs_handle_cb_pathdown(struct nfs4_client *clp) 279void nfs_handle_cb_pathdown(struct nfs_client *clp)
280{ 280{
281 struct nfs_delegation *delegation; 281 struct nfs_delegation *delegation;
282 struct inode *inode; 282 struct inode *inode;
@@ -299,7 +299,7 @@ restart:
299 299
300struct recall_threadargs { 300struct recall_threadargs {
301 struct inode *inode; 301 struct inode *inode;
302 struct nfs4_client *clp; 302 struct nfs_client *clp;
303 const nfs4_stateid *stateid; 303 const nfs4_stateid *stateid;
304 304
305 struct completion started; 305 struct completion started;
@@ -310,7 +310,7 @@ static int recall_thread(void *data)
310{ 310{
311 struct recall_threadargs *args = (struct recall_threadargs *)data; 311 struct recall_threadargs *args = (struct recall_threadargs *)data;
312 struct inode *inode = igrab(args->inode); 312 struct inode *inode = igrab(args->inode);
313 struct nfs4_client *clp = NFS_SERVER(inode)->nfs4_state; 313 struct nfs_client *clp = NFS_SERVER(inode)->nfs4_state;
314 struct nfs_inode *nfsi = NFS_I(inode); 314 struct nfs_inode *nfsi = NFS_I(inode);
315 struct nfs_delegation *delegation; 315 struct nfs_delegation *delegation;
316 316
@@ -371,7 +371,7 @@ out_module_put:
371/* 371/*
372 * Retrieve the inode associated with a delegation 372 * Retrieve the inode associated with a delegation
373 */ 373 */
374struct inode *nfs_delegation_find_inode(struct nfs4_client *clp, const struct nfs_fh *fhandle) 374struct inode *nfs_delegation_find_inode(struct nfs_client *clp, const struct nfs_fh *fhandle)
375{ 375{
376 struct nfs_delegation *delegation; 376 struct nfs_delegation *delegation;
377 struct inode *res = NULL; 377 struct inode *res = NULL;
@@ -389,7 +389,7 @@ struct inode *nfs_delegation_find_inode(struct nfs4_client *clp, const struct nf
389/* 389/*
390 * Mark all delegations as needing to be reclaimed 390 * Mark all delegations as needing to be reclaimed
391 */ 391 */
392void nfs_delegation_mark_reclaim(struct nfs4_client *clp) 392void nfs_delegation_mark_reclaim(struct nfs_client *clp)
393{ 393{
394 struct nfs_delegation *delegation; 394 struct nfs_delegation *delegation;
395 spin_lock(&clp->cl_lock); 395 spin_lock(&clp->cl_lock);
@@ -401,7 +401,7 @@ void nfs_delegation_mark_reclaim(struct nfs4_client *clp)
401/* 401/*
402 * Reap all unclaimed delegations after reboot recovery is done 402 * Reap all unclaimed delegations after reboot recovery is done
403 */ 403 */
404void nfs_delegation_reap_unclaimed(struct nfs4_client *clp) 404void nfs_delegation_reap_unclaimed(struct nfs_client *clp)
405{ 405{
406 struct nfs_delegation *delegation, *n; 406 struct nfs_delegation *delegation, *n;
407 LIST_HEAD(head); 407 LIST_HEAD(head);
@@ -423,7 +423,7 @@ void nfs_delegation_reap_unclaimed(struct nfs4_client *clp)
423 423
424int nfs4_copy_delegation_stateid(nfs4_stateid *dst, struct inode *inode) 424int nfs4_copy_delegation_stateid(nfs4_stateid *dst, struct inode *inode)
425{ 425{
426 struct nfs4_client *clp = NFS_SERVER(inode)->nfs4_state; 426 struct nfs_client *clp = NFS_SERVER(inode)->nfs4_state;
427 struct nfs_inode *nfsi = NFS_I(inode); 427 struct nfs_inode *nfsi = NFS_I(inode);
428 struct nfs_delegation *delegation; 428 struct nfs_delegation *delegation;
429 int res = 0; 429 int res = 0;