aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r--fs/nfs/nfs4proc.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index daf0854aa047..4b3ba92b0e10 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -3329,7 +3329,8 @@ static void nfs4_proc_rename_rpc_prepare(struct rpc_task *task, struct nfs_renam
3329static int nfs4_proc_rename_done(struct rpc_task *task, struct inode *old_dir, 3329static int nfs4_proc_rename_done(struct rpc_task *task, struct inode *old_dir,
3330 struct inode *new_dir) 3330 struct inode *new_dir)
3331{ 3331{
3332 struct nfs_renameres *res = task->tk_msg.rpc_resp; 3332 struct nfs_renamedata *data = task->tk_calldata;
3333 struct nfs_renameres *res = &data->res;
3333 3334
3334 if (!nfs4_sequence_done(task, &res->seq_res)) 3335 if (!nfs4_sequence_done(task, &res->seq_res))
3335 return 0; 3336 return 0;
@@ -3375,9 +3376,10 @@ static int nfs4_proc_rename(struct inode *old_dir, struct qstr *old_name,
3375 struct nfs4_exception exception = { }; 3376 struct nfs4_exception exception = { };
3376 int err; 3377 int err;
3377 do { 3378 do {
3378 err = nfs4_handle_exception(NFS_SERVER(old_dir), 3379 err = _nfs4_proc_rename(old_dir, old_name,
3379 _nfs4_proc_rename(old_dir, old_name, 3380 new_dir, new_name);
3380 new_dir, new_name), 3381 trace_nfs4_rename(old_dir, old_name, new_dir, new_name, err);
3382 err = nfs4_handle_exception(NFS_SERVER(old_dir), err,
3381 &exception); 3383 &exception);
3382 } while (exception.retry); 3384 } while (exception.retry);
3383 return err; 3385 return err;