aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_vnodeops.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_vnodeops.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_vnodeops.c')
-rw-r--r--fs/xfs/xfs_vnodeops.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c
index 3baebe280f10..3ee5f8a2858b 100644
--- a/fs/xfs/xfs_vnodeops.c
+++ b/fs/xfs/xfs_vnodeops.c
@@ -94,7 +94,7 @@ xfs_readlink_bmap(
94 byte_cnt = pathlen; 94 byte_cnt = pathlen;
95 pathlen -= byte_cnt; 95 pathlen -= byte_cnt;
96 96
97 memcpy(link, XFS_BUF_PTR(bp), byte_cnt); 97 memcpy(link, bp->b_addr, byte_cnt);
98 xfs_buf_relse(bp); 98 xfs_buf_relse(bp);
99 } 99 }
100 100
@@ -1654,7 +1654,7 @@ xfs_symlink(
1654 } 1654 }
1655 pathlen -= byte_cnt; 1655 pathlen -= byte_cnt;
1656 1656
1657 memcpy(XFS_BUF_PTR(bp), cur_chunk, byte_cnt); 1657 memcpy(bp->b_addr, cur_chunk, byte_cnt);
1658 cur_chunk += byte_cnt; 1658 cur_chunk += byte_cnt;
1659 1659
1660 xfs_trans_log_buf(tp, bp, 0, byte_cnt - 1); 1660 xfs_trans_log_buf(tp, bp, 0, byte_cnt - 1);
@@ -1999,7 +1999,7 @@ xfs_zero_remaining_bytes(
1999 mp, bp, XFS_BUF_ADDR(bp)); 1999 mp, bp, XFS_BUF_ADDR(bp));
2000 break; 2000 break;
2001 } 2001 }
2002 memset(XFS_BUF_PTR(bp) + 2002 memset(bp->b_addr +
2003 (offset - XFS_FSB_TO_B(mp, imap.br_startoff)), 2003 (offset - XFS_FSB_TO_B(mp, imap.br_startoff)),
2004 0, lastoffset - offset + 1); 2004 0, lastoffset - offset + 1);
2005 XFS_BUF_UNDONE(bp); 2005 XFS_BUF_UNDONE(bp);