aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/write.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-05-09 14:04:55 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-05-09 15:17:43 -0400
commit1d1afcbc294cc7c788eb5c7b6b98e8d63caf002c (patch)
tree88abc7e7018f733410fa51039351e4f0e2dd84c3 /fs/nfs/write.c
parent7ad84aa9448571678c243f0c5ef383fbe5b50f4f (diff)
NFS: Clean up - Rename nfs_unlock_request and nfs_unlock_request_dont_release
Function rename to ensure that the functionality of nfs_unlock_request() mirrors that of nfs_lock_request(). Then let nfs_unlock_and_release_request() do the work of what used to be called nfs_unlock_request()... Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> Cc: Fred Isaman <iisaman@netapp.com>
Diffstat (limited to 'fs/nfs/write.c')
-rw-r--r--fs/nfs/write.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index 553f7ef1079b..8ffd7d5ed58b 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -625,7 +625,7 @@ static void nfs_write_completion(struct nfs_pgio_header *hdr)
625remove_req: 625remove_req:
626 nfs_inode_remove_request(req); 626 nfs_inode_remove_request(req);
627next: 627next:
628 nfs_unlock_request_dont_release(req); 628 nfs_unlock_request(req);
629 nfs_end_page_writeback(req->wb_page); 629 nfs_end_page_writeback(req->wb_page);
630 nfs_release_request(req); 630 nfs_release_request(req);
631 } 631 }
@@ -812,7 +812,7 @@ static int nfs_writepage_setup(struct nfs_open_context *ctx, struct page *page,
812 nfs_grow_file(page, offset, count); 812 nfs_grow_file(page, offset, count);
813 nfs_mark_uptodate(page, req->wb_pgbase, req->wb_bytes); 813 nfs_mark_uptodate(page, req->wb_pgbase, req->wb_bytes);
814 nfs_mark_request_dirty(req); 814 nfs_mark_request_dirty(req);
815 nfs_unlock_request(req); 815 nfs_unlock_and_release_request(req);
816 return 0; 816 return 0;
817} 817}
818 818
@@ -1039,7 +1039,7 @@ static int nfs_do_multiple_writes(struct list_head *head,
1039static void nfs_redirty_request(struct nfs_page *req) 1039static void nfs_redirty_request(struct nfs_page *req)
1040{ 1040{
1041 nfs_mark_request_dirty(req); 1041 nfs_mark_request_dirty(req);
1042 nfs_unlock_request_dont_release(req); 1042 nfs_unlock_request(req);
1043 nfs_end_page_writeback(req->wb_page); 1043 nfs_end_page_writeback(req->wb_page);
1044 nfs_release_request(req); 1044 nfs_release_request(req);
1045} 1045}
@@ -1477,7 +1477,7 @@ void nfs_retry_commit(struct list_head *page_list,
1477 dec_bdi_stat(req->wb_page->mapping->backing_dev_info, 1477 dec_bdi_stat(req->wb_page->mapping->backing_dev_info,
1478 BDI_RECLAIMABLE); 1478 BDI_RECLAIMABLE);
1479 } 1479 }
1480 nfs_unlock_request(req); 1480 nfs_unlock_and_release_request(req);
1481 } 1481 }
1482} 1482}
1483EXPORT_SYMBOL_GPL(nfs_retry_commit); 1483EXPORT_SYMBOL_GPL(nfs_retry_commit);
@@ -1555,7 +1555,7 @@ static void nfs_commit_release_pages(struct nfs_commit_data *data)
1555 dprintk(" mismatch\n"); 1555 dprintk(" mismatch\n");
1556 nfs_mark_request_dirty(req); 1556 nfs_mark_request_dirty(req);
1557 next: 1557 next:
1558 nfs_unlock_request(req); 1558 nfs_unlock_and_release_request(req);
1559 } 1559 }
1560 nfs_init_cinfo(&cinfo, data->inode, data->dreq); 1560 nfs_init_cinfo(&cinfo, data->inode, data->dreq);
1561 if (atomic_dec_and_test(&cinfo.mds->rpcs_out)) 1561 if (atomic_dec_and_test(&cinfo.mds->rpcs_out))
@@ -1726,7 +1726,7 @@ int nfs_wb_page_cancel(struct inode *inode, struct page *page)
1726 * page as being dirty 1726 * page as being dirty
1727 */ 1727 */
1728 cancel_dirty_page(page, PAGE_CACHE_SIZE); 1728 cancel_dirty_page(page, PAGE_CACHE_SIZE);
1729 nfs_unlock_request(req); 1729 nfs_unlock_and_release_request(req);
1730 break; 1730 break;
1731 } 1731 }
1732 ret = nfs_wait_on_request(req); 1732 ret = nfs_wait_on_request(req);