aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_da_btree.c
diff options
context:
space:
mode:
authorChandra Seetharaman <sekharan@us.ibm.com>2011-07-22 19:40:15 -0400
committerAlex Elder <aelder@sgi.com>2011-07-25 16:03:13 -0400
commit6292604447ade7d150f5eba3b1518e1a224fda15 (patch)
treea33ff273c5d2e9b60bd468aa6c077d173187da28 /fs/xfs/xfs_da_btree.c
parent0095a21eb6ae8ac9f9860aa26029fe6ebbd3beeb (diff)
xfs: Remove the macro XFS_BUF_PTR
Remove the definition and usages of the macro XFS_BUF_PTR. Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_da_btree.c')
-rw-r--r--fs/xfs/xfs_da_btree.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/xfs/xfs_da_btree.c b/fs/xfs/xfs_da_btree.c
index 5d9290db3d6c..d56ccb709655 100644
--- a/fs/xfs/xfs_da_btree.c
+++ b/fs/xfs/xfs_da_btree.c
@@ -2258,7 +2258,7 @@ xfs_da_buf_make(int nbuf, xfs_buf_t **bps)
2258 dabuf->nbuf = 1; 2258 dabuf->nbuf = 1;
2259 bp = bps[0]; 2259 bp = bps[0];
2260 dabuf->bbcount = (short)BTOBB(XFS_BUF_COUNT(bp)); 2260 dabuf->bbcount = (short)BTOBB(XFS_BUF_COUNT(bp));
2261 dabuf->data = XFS_BUF_PTR(bp); 2261 dabuf->data = bp->b_addr;
2262 dabuf->bps[0] = bp; 2262 dabuf->bps[0] = bp;
2263 } else { 2263 } else {
2264 dabuf->nbuf = nbuf; 2264 dabuf->nbuf = nbuf;
@@ -2269,7 +2269,7 @@ xfs_da_buf_make(int nbuf, xfs_buf_t **bps)
2269 dabuf->data = kmem_alloc(BBTOB(dabuf->bbcount), KM_SLEEP); 2269 dabuf->data = kmem_alloc(BBTOB(dabuf->bbcount), KM_SLEEP);
2270 for (i = off = 0; i < nbuf; i++, off += XFS_BUF_COUNT(bp)) { 2270 for (i = off = 0; i < nbuf; i++, off += XFS_BUF_COUNT(bp)) {
2271 bp = bps[i]; 2271 bp = bps[i];
2272 memcpy((char *)dabuf->data + off, XFS_BUF_PTR(bp), 2272 memcpy((char *)dabuf->data + off, bp->b_addr,
2273 XFS_BUF_COUNT(bp)); 2273 XFS_BUF_COUNT(bp));
2274 } 2274 }
2275 } 2275 }
@@ -2292,8 +2292,8 @@ xfs_da_buf_clean(xfs_dabuf_t *dabuf)
2292 for (i = off = 0; i < dabuf->nbuf; 2292 for (i = off = 0; i < dabuf->nbuf;
2293 i++, off += XFS_BUF_COUNT(bp)) { 2293 i++, off += XFS_BUF_COUNT(bp)) {
2294 bp = dabuf->bps[i]; 2294 bp = dabuf->bps[i];
2295 memcpy(XFS_BUF_PTR(bp), (char *)dabuf->data + off, 2295 memcpy(bp->b_addr, dabuf->data + off,
2296 XFS_BUF_COUNT(bp)); 2296 XFS_BUF_COUNT(bp));
2297 } 2297 }
2298 } 2298 }
2299} 2299}
@@ -2330,7 +2330,7 @@ xfs_da_log_buf(xfs_trans_t *tp, xfs_dabuf_t *dabuf, uint first, uint last)
2330 2330
2331 ASSERT(dabuf->nbuf && dabuf->data && dabuf->bbcount && dabuf->bps[0]); 2331 ASSERT(dabuf->nbuf && dabuf->data && dabuf->bbcount && dabuf->bps[0]);
2332 if (dabuf->nbuf == 1) { 2332 if (dabuf->nbuf == 1) {
2333 ASSERT(dabuf->data == (void *)XFS_BUF_PTR(dabuf->bps[0])); 2333 ASSERT(dabuf->data == dabuf->bps[0]->b_addr);
2334 xfs_trans_log_buf(tp, dabuf->bps[0], first, last); 2334 xfs_trans_log_buf(tp, dabuf->bps[0], first, last);
2335 return; 2335 return;
2336 } 2336 }