diff options
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r-- | fs/nfs/nfs4proc.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 9c247fa7915a..b76dd0efae75 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -2814,6 +2814,16 @@ static void nfs4_proc_rename_setup(struct rpc_message *msg, struct inode *dir) | |||
2814 | nfs41_init_sequence(&arg->seq_args, &res->seq_res, 1); | 2814 | nfs41_init_sequence(&arg->seq_args, &res->seq_res, 1); |
2815 | } | 2815 | } |
2816 | 2816 | ||
2817 | static void nfs4_proc_rename_rpc_prepare(struct rpc_task *task, struct nfs_renamedata *data) | ||
2818 | { | ||
2819 | if (nfs4_setup_sequence(NFS_SERVER(data->old_dir), | ||
2820 | &data->args.seq_args, | ||
2821 | &data->res.seq_res, | ||
2822 | task)) | ||
2823 | return; | ||
2824 | rpc_call_start(task); | ||
2825 | } | ||
2826 | |||
2817 | static int nfs4_proc_rename_done(struct rpc_task *task, struct inode *old_dir, | 2827 | static int nfs4_proc_rename_done(struct rpc_task *task, struct inode *old_dir, |
2818 | struct inode *new_dir) | 2828 | struct inode *new_dir) |
2819 | { | 2829 | { |
@@ -6465,6 +6475,7 @@ const struct nfs_rpc_ops nfs_v4_clientops = { | |||
6465 | .unlink_done = nfs4_proc_unlink_done, | 6475 | .unlink_done = nfs4_proc_unlink_done, |
6466 | .rename = nfs4_proc_rename, | 6476 | .rename = nfs4_proc_rename, |
6467 | .rename_setup = nfs4_proc_rename_setup, | 6477 | .rename_setup = nfs4_proc_rename_setup, |
6478 | .rename_rpc_prepare = nfs4_proc_rename_rpc_prepare, | ||
6468 | .rename_done = nfs4_proc_rename_done, | 6479 | .rename_done = nfs4_proc_rename_done, |
6469 | .link = nfs4_proc_link, | 6480 | .link = nfs4_proc_link, |
6470 | .symlink = nfs4_proc_symlink, | 6481 | .symlink = nfs4_proc_symlink, |