diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-03-19 14:54:41 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-03-21 09:31:46 -0400 |
commit | 34e137cc7e3b63c254875e59cd48dcbe6757fe6c (patch) | |
tree | ea509e7f715bcbf2fd3541062063348f547e6c6c /fs/nfs/nfs4proc.c | |
parent | ea7c330362257c072791aeaf03bae2cebf9fb984 (diff) |
NFS: Remove nfs4_setup_sequence from generic unlink code
This is an NFS v4 specific operation, so it belongs in the NFS v4 code
and not the generic client.
Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
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 915385fcf532..9c247fa7915a 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -2779,6 +2779,16 @@ static void nfs4_proc_unlink_setup(struct rpc_message *msg, struct inode *dir) | |||
2779 | nfs41_init_sequence(&args->seq_args, &res->seq_res, 1); | 2779 | nfs41_init_sequence(&args->seq_args, &res->seq_res, 1); |
2780 | } | 2780 | } |
2781 | 2781 | ||
2782 | static void nfs4_proc_unlink_rpc_prepare(struct rpc_task *task, struct nfs_unlinkdata *data) | ||
2783 | { | ||
2784 | if (nfs4_setup_sequence(NFS_SERVER(data->dir), | ||
2785 | &data->args.seq_args, | ||
2786 | &data->res.seq_res, | ||
2787 | task)) | ||
2788 | return; | ||
2789 | rpc_call_start(task); | ||
2790 | } | ||
2791 | |||
2782 | static int nfs4_proc_unlink_done(struct rpc_task *task, struct inode *dir) | 2792 | static int nfs4_proc_unlink_done(struct rpc_task *task, struct inode *dir) |
2783 | { | 2793 | { |
2784 | struct nfs_removeres *res = task->tk_msg.rpc_resp; | 2794 | struct nfs_removeres *res = task->tk_msg.rpc_resp; |
@@ -6451,6 +6461,7 @@ const struct nfs_rpc_ops nfs_v4_clientops = { | |||
6451 | .create = nfs4_proc_create, | 6461 | .create = nfs4_proc_create, |
6452 | .remove = nfs4_proc_remove, | 6462 | .remove = nfs4_proc_remove, |
6453 | .unlink_setup = nfs4_proc_unlink_setup, | 6463 | .unlink_setup = nfs4_proc_unlink_setup, |
6464 | .unlink_rpc_prepare = nfs4_proc_unlink_rpc_prepare, | ||
6454 | .unlink_done = nfs4_proc_unlink_done, | 6465 | .unlink_done = nfs4_proc_unlink_done, |
6455 | .rename = nfs4_proc_rename, | 6466 | .rename = nfs4_proc_rename, |
6456 | .rename_setup = nfs4_proc_rename_setup, | 6467 | .rename_setup = nfs4_proc_rename_setup, |