aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/pagelist.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/pagelist.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/pagelist.c')
-rw-r--r--fs/nfs/pagelist.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/fs/nfs/pagelist.c b/fs/nfs/pagelist.c
index 69146f386989..aed913c833f4 100644
--- a/fs/nfs/pagelist.c
+++ b/fs/nfs/pagelist.c
@@ -128,10 +128,10 @@ nfs_create_request(struct nfs_open_context *ctx, struct inode *inode,
128} 128}
129 129
130/** 130/**
131 * nfs_unlock_request_dont_release - Unlock request and wake up sleepers. 131 * nfs_unlock_request - Unlock request and wake up sleepers.
132 * @req: 132 * @req:
133 */ 133 */
134void nfs_unlock_request_dont_release(struct nfs_page *req) 134void nfs_unlock_request(struct nfs_page *req)
135{ 135{
136 if (!NFS_WBACK_BUSY(req)) { 136 if (!NFS_WBACK_BUSY(req)) {
137 printk(KERN_ERR "NFS: Invalid unlock attempted\n"); 137 printk(KERN_ERR "NFS: Invalid unlock attempted\n");
@@ -144,11 +144,12 @@ void nfs_unlock_request_dont_release(struct nfs_page *req)
144} 144}
145 145
146/** 146/**
147 * nfs_unlock_request - Unlock request and release the nfs_page 147 * nfs_unlock_and_release_request - Unlock request and release the nfs_page
148 * @req:
148 */ 149 */
149void nfs_unlock_request(struct nfs_page *req) 150void nfs_unlock_and_release_request(struct nfs_page *req)
150{ 151{
151 nfs_unlock_request_dont_release(req); 152 nfs_unlock_request(req);
152 nfs_release_request(req); 153 nfs_release_request(req);
153} 154}
154 155