diff options
Diffstat (limited to 'fs/nfs/nfs3proc.c')
-rw-r--r-- | fs/nfs/nfs3proc.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/fs/nfs/nfs3proc.c b/fs/nfs/nfs3proc.c index 91943953a370..5242eae6711a 100644 --- a/fs/nfs/nfs3proc.c +++ b/fs/nfs/nfs3proc.c | |||
@@ -428,6 +428,11 @@ nfs3_proc_unlink_setup(struct rpc_message *msg, struct inode *dir) | |||
428 | msg->rpc_proc = &nfs3_procedures[NFS3PROC_REMOVE]; | 428 | msg->rpc_proc = &nfs3_procedures[NFS3PROC_REMOVE]; |
429 | } | 429 | } |
430 | 430 | ||
431 | static void nfs3_proc_unlink_rpc_prepare(struct rpc_task *task, struct nfs_unlinkdata *data) | ||
432 | { | ||
433 | rpc_call_start(task); | ||
434 | } | ||
435 | |||
431 | static int | 436 | static int |
432 | nfs3_proc_unlink_done(struct rpc_task *task, struct inode *dir) | 437 | nfs3_proc_unlink_done(struct rpc_task *task, struct inode *dir) |
433 | { | 438 | { |
@@ -445,6 +450,11 @@ nfs3_proc_rename_setup(struct rpc_message *msg, struct inode *dir) | |||
445 | msg->rpc_proc = &nfs3_procedures[NFS3PROC_RENAME]; | 450 | msg->rpc_proc = &nfs3_procedures[NFS3PROC_RENAME]; |
446 | } | 451 | } |
447 | 452 | ||
453 | static void nfs3_proc_rename_rpc_prepare(struct rpc_task *task, struct nfs_renamedata *data) | ||
454 | { | ||
455 | rpc_call_start(task); | ||
456 | } | ||
457 | |||
448 | static int | 458 | static int |
449 | nfs3_proc_rename_done(struct rpc_task *task, struct inode *old_dir, | 459 | nfs3_proc_rename_done(struct rpc_task *task, struct inode *old_dir, |
450 | struct inode *new_dir) | 460 | struct inode *new_dir) |
@@ -814,6 +824,11 @@ static void nfs3_proc_read_setup(struct nfs_read_data *data, struct rpc_message | |||
814 | msg->rpc_proc = &nfs3_procedures[NFS3PROC_READ]; | 824 | msg->rpc_proc = &nfs3_procedures[NFS3PROC_READ]; |
815 | } | 825 | } |
816 | 826 | ||
827 | static void nfs3_proc_read_rpc_prepare(struct rpc_task *task, struct nfs_read_data *data) | ||
828 | { | ||
829 | rpc_call_start(task); | ||
830 | } | ||
831 | |||
817 | static int nfs3_write_done(struct rpc_task *task, struct nfs_write_data *data) | 832 | static int nfs3_write_done(struct rpc_task *task, struct nfs_write_data *data) |
818 | { | 833 | { |
819 | if (nfs3_async_handle_jukebox(task, data->inode)) | 834 | if (nfs3_async_handle_jukebox(task, data->inode)) |
@@ -828,6 +843,11 @@ static void nfs3_proc_write_setup(struct nfs_write_data *data, struct rpc_messag | |||
828 | msg->rpc_proc = &nfs3_procedures[NFS3PROC_WRITE]; | 843 | msg->rpc_proc = &nfs3_procedures[NFS3PROC_WRITE]; |
829 | } | 844 | } |
830 | 845 | ||
846 | static void nfs3_proc_write_rpc_prepare(struct rpc_task *task, struct nfs_write_data *data) | ||
847 | { | ||
848 | rpc_call_start(task); | ||
849 | } | ||
850 | |||
831 | static int nfs3_commit_done(struct rpc_task *task, struct nfs_write_data *data) | 851 | static int nfs3_commit_done(struct rpc_task *task, struct nfs_write_data *data) |
832 | { | 852 | { |
833 | if (nfs3_async_handle_jukebox(task, data->inode)) | 853 | if (nfs3_async_handle_jukebox(task, data->inode)) |
@@ -864,9 +884,11 @@ const struct nfs_rpc_ops nfs_v3_clientops = { | |||
864 | .create = nfs3_proc_create, | 884 | .create = nfs3_proc_create, |
865 | .remove = nfs3_proc_remove, | 885 | .remove = nfs3_proc_remove, |
866 | .unlink_setup = nfs3_proc_unlink_setup, | 886 | .unlink_setup = nfs3_proc_unlink_setup, |
887 | .unlink_rpc_prepare = nfs3_proc_unlink_rpc_prepare, | ||
867 | .unlink_done = nfs3_proc_unlink_done, | 888 | .unlink_done = nfs3_proc_unlink_done, |
868 | .rename = nfs3_proc_rename, | 889 | .rename = nfs3_proc_rename, |
869 | .rename_setup = nfs3_proc_rename_setup, | 890 | .rename_setup = nfs3_proc_rename_setup, |
891 | .rename_rpc_prepare = nfs3_proc_rename_rpc_prepare, | ||
870 | .rename_done = nfs3_proc_rename_done, | 892 | .rename_done = nfs3_proc_rename_done, |
871 | .link = nfs3_proc_link, | 893 | .link = nfs3_proc_link, |
872 | .symlink = nfs3_proc_symlink, | 894 | .symlink = nfs3_proc_symlink, |
@@ -879,8 +901,10 @@ const struct nfs_rpc_ops nfs_v3_clientops = { | |||
879 | .pathconf = nfs3_proc_pathconf, | 901 | .pathconf = nfs3_proc_pathconf, |
880 | .decode_dirent = nfs3_decode_dirent, | 902 | .decode_dirent = nfs3_decode_dirent, |
881 | .read_setup = nfs3_proc_read_setup, | 903 | .read_setup = nfs3_proc_read_setup, |
904 | .read_rpc_prepare = nfs3_proc_read_rpc_prepare, | ||
882 | .read_done = nfs3_read_done, | 905 | .read_done = nfs3_read_done, |
883 | .write_setup = nfs3_proc_write_setup, | 906 | .write_setup = nfs3_proc_write_setup, |
907 | .write_rpc_prepare = nfs3_proc_write_rpc_prepare, | ||
884 | .write_done = nfs3_write_done, | 908 | .write_done = nfs3_write_done, |
885 | .commit_setup = nfs3_proc_commit_setup, | 909 | .commit_setup = nfs3_proc_commit_setup, |
886 | .commit_done = nfs3_commit_done, | 910 | .commit_done = nfs3_commit_done, |