diff options
Diffstat (limited to 'fs/nfs/nfs3proc.c')
-rw-r--r-- | fs/nfs/nfs3proc.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/fs/nfs/nfs3proc.c b/fs/nfs/nfs3proc.c index 524f9f837408..1f11d2533ee4 100644 --- a/fs/nfs/nfs3proc.c +++ b/fs/nfs/nfs3proc.c | |||
@@ -138,7 +138,7 @@ nfs3_proc_setattr(struct dentry *dentry, struct nfs_fattr *fattr, | |||
138 | nfs_fattr_init(fattr); | 138 | nfs_fattr_init(fattr); |
139 | status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0); | 139 | status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0); |
140 | if (status == 0) | 140 | if (status == 0) |
141 | nfs_setattr_update_inode(inode, sattr); | 141 | nfs_setattr_update_inode(inode, sattr, fattr); |
142 | dprintk("NFS reply setattr: %d\n", status); | 142 | dprintk("NFS reply setattr: %d\n", status); |
143 | return status; | 143 | return status; |
144 | } | 144 | } |
@@ -800,6 +800,9 @@ static int nfs3_read_done(struct rpc_task *task, struct nfs_pgio_header *hdr) | |||
800 | { | 800 | { |
801 | struct inode *inode = hdr->inode; | 801 | struct inode *inode = hdr->inode; |
802 | 802 | ||
803 | if (hdr->pgio_done_cb != NULL) | ||
804 | return hdr->pgio_done_cb(task, hdr); | ||
805 | |||
803 | if (nfs3_async_handle_jukebox(task, inode)) | 806 | if (nfs3_async_handle_jukebox(task, inode)) |
804 | return -EAGAIN; | 807 | return -EAGAIN; |
805 | 808 | ||
@@ -825,10 +828,13 @@ static int nfs3_write_done(struct rpc_task *task, struct nfs_pgio_header *hdr) | |||
825 | { | 828 | { |
826 | struct inode *inode = hdr->inode; | 829 | struct inode *inode = hdr->inode; |
827 | 830 | ||
831 | if (hdr->pgio_done_cb != NULL) | ||
832 | return hdr->pgio_done_cb(task, hdr); | ||
833 | |||
828 | if (nfs3_async_handle_jukebox(task, inode)) | 834 | if (nfs3_async_handle_jukebox(task, inode)) |
829 | return -EAGAIN; | 835 | return -EAGAIN; |
830 | if (task->tk_status >= 0) | 836 | if (task->tk_status >= 0) |
831 | nfs_post_op_update_inode_force_wcc(inode, hdr->res.fattr); | 837 | nfs_writeback_update_inode(hdr); |
832 | return 0; | 838 | return 0; |
833 | } | 839 | } |
834 | 840 | ||
@@ -845,6 +851,9 @@ static void nfs3_proc_commit_rpc_prepare(struct rpc_task *task, struct nfs_commi | |||
845 | 851 | ||
846 | static int nfs3_commit_done(struct rpc_task *task, struct nfs_commit_data *data) | 852 | static int nfs3_commit_done(struct rpc_task *task, struct nfs_commit_data *data) |
847 | { | 853 | { |
854 | if (data->commit_done_cb != NULL) | ||
855 | return data->commit_done_cb(task, data); | ||
856 | |||
848 | if (nfs3_async_handle_jukebox(task, data->inode)) | 857 | if (nfs3_async_handle_jukebox(task, data->inode)) |
849 | return -EAGAIN; | 858 | return -EAGAIN; |
850 | nfs_refresh_inode(data->inode, data->res.fattr); | 859 | nfs_refresh_inode(data->inode, data->res.fattr); |