diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2011-07-25 13:59:46 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-07-25 14:53:52 -0400 |
commit | 5f00bcb38ef9a980a33c6dbdc0044964b05f22dd (patch) | |
tree | 3175fb9375aecb50bde1be0bf4fa8aa8155131d6 /fs/nfs/write.c | |
parent | 34006cee28f7344f9557a4be3816c7891b1bbab1 (diff) | |
parent | b6844e8f64920cdee620157252169ba63afb0c89 (diff) |
Merge branch 'master' into devel and apply fixup from Stephen Rothwell:
vfs/nfs: fixup for nfs_open_context change
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/write.c')
-rw-r--r-- | fs/nfs/write.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index 9fba5270b1a8..ebed5183f420 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c | |||
@@ -409,7 +409,7 @@ out: | |||
409 | */ | 409 | */ |
410 | static void nfs_inode_remove_request(struct nfs_page *req) | 410 | static void nfs_inode_remove_request(struct nfs_page *req) |
411 | { | 411 | { |
412 | struct inode *inode = req->wb_context->path.dentry->d_inode; | 412 | struct inode *inode = req->wb_context->dentry->d_inode; |
413 | struct nfs_inode *nfsi = NFS_I(inode); | 413 | struct nfs_inode *nfsi = NFS_I(inode); |
414 | 414 | ||
415 | BUG_ON (!NFS_WBACK_BUSY(req)); | 415 | BUG_ON (!NFS_WBACK_BUSY(req)); |
@@ -438,7 +438,7 @@ nfs_mark_request_dirty(struct nfs_page *req) | |||
438 | static void | 438 | static void |
439 | nfs_mark_request_commit(struct nfs_page *req, struct pnfs_layout_segment *lseg) | 439 | nfs_mark_request_commit(struct nfs_page *req, struct pnfs_layout_segment *lseg) |
440 | { | 440 | { |
441 | struct inode *inode = req->wb_context->path.dentry->d_inode; | 441 | struct inode *inode = req->wb_context->dentry->d_inode; |
442 | struct nfs_inode *nfsi = NFS_I(inode); | 442 | struct nfs_inode *nfsi = NFS_I(inode); |
443 | 443 | ||
444 | spin_lock(&inode->i_lock); | 444 | spin_lock(&inode->i_lock); |
@@ -850,13 +850,13 @@ static void nfs_write_rpcsetup(struct nfs_page *req, | |||
850 | unsigned int count, unsigned int offset, | 850 | unsigned int count, unsigned int offset, |
851 | int how) | 851 | int how) |
852 | { | 852 | { |
853 | struct inode *inode = req->wb_context->path.dentry->d_inode; | 853 | struct inode *inode = req->wb_context->dentry->d_inode; |
854 | 854 | ||
855 | /* Set up the RPC argument and reply structs | 855 | /* Set up the RPC argument and reply structs |
856 | * NB: take care not to mess about with data->commit et al. */ | 856 | * NB: take care not to mess about with data->commit et al. */ |
857 | 857 | ||
858 | data->req = req; | 858 | data->req = req; |
859 | data->inode = inode = req->wb_context->path.dentry->d_inode; | 859 | data->inode = inode = req->wb_context->dentry->d_inode; |
860 | data->cred = req->wb_context->cred; | 860 | data->cred = req->wb_context->cred; |
861 | 861 | ||
862 | data->args.fh = NFS_FH(inode); | 862 | data->args.fh = NFS_FH(inode); |
@@ -889,7 +889,7 @@ static int nfs_do_write(struct nfs_write_data *data, | |||
889 | const struct rpc_call_ops *call_ops, | 889 | const struct rpc_call_ops *call_ops, |
890 | int how) | 890 | int how) |
891 | { | 891 | { |
892 | struct inode *inode = data->args.context->path.dentry->d_inode; | 892 | struct inode *inode = data->args.context->dentry->d_inode; |
893 | 893 | ||
894 | return nfs_initiate_write(data, NFS_CLIENT(inode), call_ops, how); | 894 | return nfs_initiate_write(data, NFS_CLIENT(inode), call_ops, how); |
895 | } | 895 | } |
@@ -1081,9 +1081,9 @@ static void nfs_writeback_done_partial(struct rpc_task *task, void *calldata) | |||
1081 | 1081 | ||
1082 | dprintk("NFS: %5u write(%s/%lld %d@%lld)", | 1082 | dprintk("NFS: %5u write(%s/%lld %d@%lld)", |
1083 | task->tk_pid, | 1083 | task->tk_pid, |
1084 | data->req->wb_context->path.dentry->d_inode->i_sb->s_id, | 1084 | data->req->wb_context->dentry->d_inode->i_sb->s_id, |
1085 | (long long) | 1085 | (long long) |
1086 | NFS_FILEID(data->req->wb_context->path.dentry->d_inode), | 1086 | NFS_FILEID(data->req->wb_context->dentry->d_inode), |
1087 | data->req->wb_bytes, (long long)req_offset(data->req)); | 1087 | data->req->wb_bytes, (long long)req_offset(data->req)); |
1088 | 1088 | ||
1089 | nfs_writeback_done(task, data); | 1089 | nfs_writeback_done(task, data); |
@@ -1176,8 +1176,8 @@ static void nfs_writeback_release_full(void *calldata) | |||
1176 | 1176 | ||
1177 | dprintk("NFS: %5u write (%s/%lld %d@%lld)", | 1177 | dprintk("NFS: %5u write (%s/%lld %d@%lld)", |
1178 | data->task.tk_pid, | 1178 | data->task.tk_pid, |
1179 | req->wb_context->path.dentry->d_inode->i_sb->s_id, | 1179 | req->wb_context->dentry->d_inode->i_sb->s_id, |
1180 | (long long)NFS_FILEID(req->wb_context->path.dentry->d_inode), | 1180 | (long long)NFS_FILEID(req->wb_context->dentry->d_inode), |
1181 | req->wb_bytes, | 1181 | req->wb_bytes, |
1182 | (long long)req_offset(req)); | 1182 | (long long)req_offset(req)); |
1183 | 1183 | ||
@@ -1375,7 +1375,7 @@ void nfs_init_commit(struct nfs_write_data *data, | |||
1375 | struct pnfs_layout_segment *lseg) | 1375 | struct pnfs_layout_segment *lseg) |
1376 | { | 1376 | { |
1377 | struct nfs_page *first = nfs_list_entry(head->next); | 1377 | struct nfs_page *first = nfs_list_entry(head->next); |
1378 | struct inode *inode = first->wb_context->path.dentry->d_inode; | 1378 | struct inode *inode = first->wb_context->dentry->d_inode; |
1379 | 1379 | ||
1380 | /* Set up the RPC argument and reply structs | 1380 | /* Set up the RPC argument and reply structs |
1381 | * NB: take care not to mess about with data->commit et al. */ | 1381 | * NB: take care not to mess about with data->commit et al. */ |
@@ -1463,8 +1463,8 @@ void nfs_commit_release_pages(struct nfs_write_data *data) | |||
1463 | nfs_clear_request_commit(req); | 1463 | nfs_clear_request_commit(req); |
1464 | 1464 | ||
1465 | dprintk("NFS: commit (%s/%lld %d@%lld)", | 1465 | dprintk("NFS: commit (%s/%lld %d@%lld)", |
1466 | req->wb_context->path.dentry->d_inode->i_sb->s_id, | 1466 | req->wb_context->dentry->d_sb->s_id, |
1467 | (long long)NFS_FILEID(req->wb_context->path.dentry->d_inode), | 1467 | (long long)NFS_FILEID(req->wb_context->dentry->d_inode), |
1468 | req->wb_bytes, | 1468 | req->wb_bytes, |
1469 | (long long)req_offset(req)); | 1469 | (long long)req_offset(req)); |
1470 | if (status < 0) { | 1470 | if (status < 0) { |