nfs3proc.c (57b8628bb0ac4e47c806e45c5bbd89282e93869b) nfs3proc.c (0b7c01533aa9f4a228d07d2768d084acb3a387bc)
1/*
2 * linux/fs/nfs/nfs3proc.c
3 *
4 * Client-side NFSv3 procedures stubs.
5 *
6 * Copyright (C) 1997, Olaf Kirch
7 */
8

--- 834 unchanged lines hidden (view full) ---

843 msg->rpc_proc = &nfs3_procedures[NFS3PROC_WRITE];
844}
845
846static void nfs3_proc_write_rpc_prepare(struct rpc_task *task, struct nfs_write_data *data)
847{
848 rpc_call_start(task);
849}
850
1/*
2 * linux/fs/nfs/nfs3proc.c
3 *
4 * Client-side NFSv3 procedures stubs.
5 *
6 * Copyright (C) 1997, Olaf Kirch
7 */
8

--- 834 unchanged lines hidden (view full) ---

843 msg->rpc_proc = &nfs3_procedures[NFS3PROC_WRITE];
844}
845
846static void nfs3_proc_write_rpc_prepare(struct rpc_task *task, struct nfs_write_data *data)
847{
848 rpc_call_start(task);
849}
850
851static int nfs3_commit_done(struct rpc_task *task, struct nfs_write_data *data)
851static void nfs3_proc_commit_rpc_prepare(struct rpc_task *task, struct nfs_commit_data *data)
852{
852{
853 rpc_call_start(task);
854}
855
856static int nfs3_commit_done(struct rpc_task *task, struct nfs_commit_data *data)
857{
853 if (nfs3_async_handle_jukebox(task, data->inode))
854 return -EAGAIN;
855 nfs_refresh_inode(data->inode, data->res.fattr);
856 return 0;
857}
858
858 if (nfs3_async_handle_jukebox(task, data->inode))
859 return -EAGAIN;
860 nfs_refresh_inode(data->inode, data->res.fattr);
861 return 0;
862}
863
859static void nfs3_proc_commit_setup(struct nfs_write_data *data, struct rpc_message *msg)
864static void nfs3_proc_commit_setup(struct nfs_commit_data *data, struct rpc_message *msg)
860{
861 msg->rpc_proc = &nfs3_procedures[NFS3PROC_COMMIT];
862}
863
864static int
865nfs3_proc_lock(struct file *filp, int cmd, struct file_lock *fl)
866{
867 struct inode *inode = filp->f_path.dentry->d_inode;

--- 34 unchanged lines hidden (view full) ---

902 .decode_dirent = nfs3_decode_dirent,
903 .read_setup = nfs3_proc_read_setup,
904 .read_rpc_prepare = nfs3_proc_read_rpc_prepare,
905 .read_done = nfs3_read_done,
906 .write_setup = nfs3_proc_write_setup,
907 .write_rpc_prepare = nfs3_proc_write_rpc_prepare,
908 .write_done = nfs3_write_done,
909 .commit_setup = nfs3_proc_commit_setup,
865{
866 msg->rpc_proc = &nfs3_procedures[NFS3PROC_COMMIT];
867}
868
869static int
870nfs3_proc_lock(struct file *filp, int cmd, struct file_lock *fl)
871{
872 struct inode *inode = filp->f_path.dentry->d_inode;

--- 34 unchanged lines hidden (view full) ---

907 .decode_dirent = nfs3_decode_dirent,
908 .read_setup = nfs3_proc_read_setup,
909 .read_rpc_prepare = nfs3_proc_read_rpc_prepare,
910 .read_done = nfs3_read_done,
911 .write_setup = nfs3_proc_write_setup,
912 .write_rpc_prepare = nfs3_proc_write_rpc_prepare,
913 .write_done = nfs3_write_done,
914 .commit_setup = nfs3_proc_commit_setup,
915 .commit_rpc_prepare = nfs3_proc_commit_rpc_prepare,
910 .commit_done = nfs3_commit_done,
911 .lock = nfs3_proc_lock,
912 .clear_acl_cache = nfs3_forget_cached_acls,
913 .close_context = nfs_close_context,
914 .init_client = nfs_init_client,
915};
916 .commit_done = nfs3_commit_done,
917 .lock = nfs3_proc_lock,
918 .clear_acl_cache = nfs3_forget_cached_acls,
919 .close_context = nfs_close_context,
920 .init_client = nfs_init_client,
921};