diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-03-19 14:54:42 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-03-21 09:31:46 -0400 |
commit | c6bfa1a16377b42496ecc0490a33516c0e414e7b (patch) | |
tree | a45bb649475733474350d1420b6cb1079020b8f2 /fs/nfs/unlink.c | |
parent | 34e137cc7e3b63c254875e59cd48dcbe6757fe6c (diff) |
NFS: Remove nfs4_setup_sequence from generic rename 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/unlink.c')
-rw-r--r-- | fs/nfs/unlink.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/fs/nfs/unlink.c b/fs/nfs/unlink.c index 9c5a7980e244..3210a03342f9 100644 --- a/fs/nfs/unlink.c +++ b/fs/nfs/unlink.c | |||
@@ -323,18 +323,6 @@ nfs_cancel_async_unlink(struct dentry *dentry) | |||
323 | spin_unlock(&dentry->d_lock); | 323 | spin_unlock(&dentry->d_lock); |
324 | } | 324 | } |
325 | 325 | ||
326 | struct nfs_renamedata { | ||
327 | struct nfs_renameargs args; | ||
328 | struct nfs_renameres res; | ||
329 | struct rpc_cred *cred; | ||
330 | struct inode *old_dir; | ||
331 | struct dentry *old_dentry; | ||
332 | struct nfs_fattr old_fattr; | ||
333 | struct inode *new_dir; | ||
334 | struct dentry *new_dentry; | ||
335 | struct nfs_fattr new_fattr; | ||
336 | }; | ||
337 | |||
338 | /** | 326 | /** |
339 | * nfs_async_rename_done - Sillyrename post-processing | 327 | * nfs_async_rename_done - Sillyrename post-processing |
340 | * @task: rpc_task of the sillyrename | 328 | * @task: rpc_task of the sillyrename |
@@ -385,25 +373,16 @@ static void nfs_async_rename_release(void *calldata) | |||
385 | kfree(data); | 373 | kfree(data); |
386 | } | 374 | } |
387 | 375 | ||
388 | #if defined(CONFIG_NFS_V4_1) | ||
389 | static void nfs_rename_prepare(struct rpc_task *task, void *calldata) | 376 | static void nfs_rename_prepare(struct rpc_task *task, void *calldata) |
390 | { | 377 | { |
391 | struct nfs_renamedata *data = calldata; | 378 | struct nfs_renamedata *data = calldata; |
392 | struct nfs_server *server = NFS_SERVER(data->old_dir); | 379 | NFS_PROTO(data->old_dir)->rename_rpc_prepare(task, data); |
393 | |||
394 | if (nfs4_setup_sequence(server, &data->args.seq_args, | ||
395 | &data->res.seq_res, task)) | ||
396 | return; | ||
397 | rpc_call_start(task); | ||
398 | } | 380 | } |
399 | #endif /* CONFIG_NFS_V4_1 */ | ||
400 | 381 | ||
401 | static const struct rpc_call_ops nfs_rename_ops = { | 382 | static const struct rpc_call_ops nfs_rename_ops = { |
402 | .rpc_call_done = nfs_async_rename_done, | 383 | .rpc_call_done = nfs_async_rename_done, |
403 | .rpc_release = nfs_async_rename_release, | 384 | .rpc_release = nfs_async_rename_release, |
404 | #if defined(CONFIG_NFS_V4_1) | ||
405 | .rpc_call_prepare = nfs_rename_prepare, | 385 | .rpc_call_prepare = nfs_rename_prepare, |
406 | #endif /* CONFIG_NFS_V4_1 */ | ||
407 | }; | 386 | }; |
408 | 387 | ||
409 | /** | 388 | /** |