diff options
Diffstat (limited to 'fs/nfs/proc.c')
| -rw-r--r-- | fs/nfs/proc.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/fs/nfs/proc.c b/fs/nfs/proc.c index fddbba2d9eff..e55ce9e8b034 100644 --- a/fs/nfs/proc.c +++ b/fs/nfs/proc.c | |||
| @@ -357,30 +357,6 @@ nfs_proc_rename_done(struct rpc_task *task, struct inode *old_dir, | |||
| 357 | } | 357 | } |
| 358 | 358 | ||
| 359 | static int | 359 | static int |
| 360 | nfs_proc_rename(struct inode *old_dir, struct qstr *old_name, | ||
| 361 | struct inode *new_dir, struct qstr *new_name) | ||
| 362 | { | ||
| 363 | struct nfs_renameargs arg = { | ||
| 364 | .old_dir = NFS_FH(old_dir), | ||
| 365 | .old_name = old_name, | ||
| 366 | .new_dir = NFS_FH(new_dir), | ||
| 367 | .new_name = new_name, | ||
| 368 | }; | ||
| 369 | struct rpc_message msg = { | ||
| 370 | .rpc_proc = &nfs_procedures[NFSPROC_RENAME], | ||
| 371 | .rpc_argp = &arg, | ||
| 372 | }; | ||
| 373 | int status; | ||
| 374 | |||
| 375 | dprintk("NFS call rename %s -> %s\n", old_name->name, new_name->name); | ||
| 376 | status = rpc_call_sync(NFS_CLIENT(old_dir), &msg, 0); | ||
| 377 | nfs_mark_for_revalidate(old_dir); | ||
| 378 | nfs_mark_for_revalidate(new_dir); | ||
| 379 | dprintk("NFS reply rename: %d\n", status); | ||
| 380 | return status; | ||
| 381 | } | ||
| 382 | |||
| 383 | static int | ||
| 384 | nfs_proc_link(struct inode *inode, struct inode *dir, struct qstr *name) | 360 | nfs_proc_link(struct inode *inode, struct inode *dir, struct qstr *name) |
| 385 | { | 361 | { |
| 386 | struct nfs_linkargs arg = { | 362 | struct nfs_linkargs arg = { |
| @@ -745,7 +721,6 @@ const struct nfs_rpc_ops nfs_v2_clientops = { | |||
| 745 | .unlink_setup = nfs_proc_unlink_setup, | 721 | .unlink_setup = nfs_proc_unlink_setup, |
| 746 | .unlink_rpc_prepare = nfs_proc_unlink_rpc_prepare, | 722 | .unlink_rpc_prepare = nfs_proc_unlink_rpc_prepare, |
| 747 | .unlink_done = nfs_proc_unlink_done, | 723 | .unlink_done = nfs_proc_unlink_done, |
| 748 | .rename = nfs_proc_rename, | ||
| 749 | .rename_setup = nfs_proc_rename_setup, | 724 | .rename_setup = nfs_proc_rename_setup, |
| 750 | .rename_rpc_prepare = nfs_proc_rename_rpc_prepare, | 725 | .rename_rpc_prepare = nfs_proc_rename_rpc_prepare, |
| 751 | .rename_done = nfs_proc_rename_done, | 726 | .rename_done = nfs_proc_rename_done, |
