aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4filelayout.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-09-18 20:57:08 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-09-28 16:03:07 -0400
commit9369a431bce1e985597eda32992960c969b27c5b (patch)
tree09e566777480749f44c54c642f5d31d8b91e9d44 /fs/nfs/nfs4filelayout.c
parent70c3bd2bdf9a3c7c9282c362a4ec9ec88c713e13 (diff)
NFSv4.1: Cleanup; add "pnfs_" prefix to put_lseg() and get_lseg()
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4filelayout.c')
-rw-r--r--fs/nfs/nfs4filelayout.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/nfs/nfs4filelayout.c b/fs/nfs/nfs4filelayout.c
index 53f94d915bd1..77cd1151ef0d 100644
--- a/fs/nfs/nfs4filelayout.c
+++ b/fs/nfs/nfs4filelayout.c
@@ -453,7 +453,7 @@ static void filelayout_commit_release(void *calldata)
453 struct nfs_commit_data *data = calldata; 453 struct nfs_commit_data *data = calldata;
454 454
455 data->completion_ops->completion(data); 455 data->completion_ops->completion(data);
456 put_lseg(data->lseg); 456 pnfs_put_lseg(data->lseg);
457 nfs_put_client(data->ds_clp); 457 nfs_put_client(data->ds_clp);
458 nfs_commitdata_release(data); 458 nfs_commitdata_release(data);
459} 459}
@@ -931,7 +931,7 @@ filelayout_pg_init_write(struct nfs_pageio_descriptor *pgio,
931 nfs_init_cinfo(&cinfo, pgio->pg_inode, pgio->pg_dreq); 931 nfs_init_cinfo(&cinfo, pgio->pg_inode, pgio->pg_dreq);
932 status = filelayout_alloc_commit_info(pgio->pg_lseg, &cinfo, GFP_NOFS); 932 status = filelayout_alloc_commit_info(pgio->pg_lseg, &cinfo, GFP_NOFS);
933 if (status < 0) { 933 if (status < 0) {
934 put_lseg(pgio->pg_lseg); 934 pnfs_put_lseg(pgio->pg_lseg);
935 pgio->pg_lseg = NULL; 935 pgio->pg_lseg = NULL;
936 goto out_mds; 936 goto out_mds;
937 } 937 }
@@ -985,7 +985,7 @@ filelayout_clear_request_commit(struct nfs_page *req,
985out: 985out:
986 nfs_request_remove_commit_list(req, cinfo); 986 nfs_request_remove_commit_list(req, cinfo);
987 spin_unlock(cinfo->lock); 987 spin_unlock(cinfo->lock);
988 put_lseg(freeme); 988 pnfs_put_lseg(freeme);
989} 989}
990 990
991static struct list_head * 991static struct list_head *
@@ -1018,7 +1018,7 @@ filelayout_choose_commit_list(struct nfs_page *req,
1018 * off due to a rewrite, in which case it will be done in 1018 * off due to a rewrite, in which case it will be done in
1019 * filelayout_clear_request_commit 1019 * filelayout_clear_request_commit
1020 */ 1020 */
1021 buckets[i].wlseg = get_lseg(lseg); 1021 buckets[i].wlseg = pnfs_get_lseg(lseg);
1022 } 1022 }
1023 set_bit(PG_COMMIT_TO_DS, &req->wb_flags); 1023 set_bit(PG_COMMIT_TO_DS, &req->wb_flags);
1024 cinfo->ds->nwritten++; 1024 cinfo->ds->nwritten++;
@@ -1128,7 +1128,7 @@ filelayout_scan_ds_commit_list(struct pnfs_commit_bucket *bucket,
1128 if (list_empty(src)) 1128 if (list_empty(src))
1129 bucket->wlseg = NULL; 1129 bucket->wlseg = NULL;
1130 else 1130 else
1131 get_lseg(bucket->clseg); 1131 pnfs_get_lseg(bucket->clseg);
1132 } 1132 }
1133 return ret; 1133 return ret;
1134} 1134}
@@ -1159,12 +1159,12 @@ static void filelayout_recover_commit_reqs(struct list_head *dst,
1159 1159
1160 /* NOTE cinfo->lock is NOT held, relying on fact that this is 1160 /* NOTE cinfo->lock is NOT held, relying on fact that this is
1161 * only called on single thread per dreq. 1161 * only called on single thread per dreq.
1162 * Can't take the lock because need to do put_lseg 1162 * Can't take the lock because need to do pnfs_put_lseg
1163 */ 1163 */
1164 for (i = 0, b = cinfo->ds->buckets; i < cinfo->ds->nbuckets; i++, b++) { 1164 for (i = 0, b = cinfo->ds->buckets; i < cinfo->ds->nbuckets; i++, b++) {
1165 if (transfer_commit_list(&b->written, dst, cinfo, 0)) { 1165 if (transfer_commit_list(&b->written, dst, cinfo, 0)) {
1166 BUG_ON(!list_empty(&b->written)); 1166 BUG_ON(!list_empty(&b->written));
1167 put_lseg(b->wlseg); 1167 pnfs_put_lseg(b->wlseg);
1168 b->wlseg = NULL; 1168 b->wlseg = NULL;
1169 } 1169 }
1170 } 1170 }
@@ -1200,7 +1200,7 @@ alloc_ds_commits(struct nfs_commit_info *cinfo, struct list_head *list)
1200 if (list_empty(&bucket->committing)) 1200 if (list_empty(&bucket->committing))
1201 continue; 1201 continue;
1202 nfs_retry_commit(&bucket->committing, bucket->clseg, cinfo); 1202 nfs_retry_commit(&bucket->committing, bucket->clseg, cinfo);
1203 put_lseg(bucket->clseg); 1203 pnfs_put_lseg(bucket->clseg);
1204 bucket->clseg = NULL; 1204 bucket->clseg = NULL;
1205 } 1205 }
1206 /* Caller will clean up entries put on list */ 1206 /* Caller will clean up entries put on list */