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>
This commit is contained in:

committed by
Alex Elder

parent
0095a21eb6
commit
6292604447
@@ -147,7 +147,7 @@ xlog_align(
|
||||
xfs_daddr_t offset = blk_no & ((xfs_daddr_t)log->l_sectBBsize - 1);
|
||||
|
||||
ASSERT(BBTOB(offset + nbblks) <= XFS_BUF_SIZE(bp));
|
||||
return XFS_BUF_PTR(bp) + BBTOB(offset);
|
||||
return bp->b_addr + BBTOB(offset);
|
||||
}
|
||||
|
||||
|
||||
@@ -219,7 +219,7 @@ xlog_bread_offset(
|
||||
xfs_buf_t *bp,
|
||||
xfs_caddr_t offset)
|
||||
{
|
||||
xfs_caddr_t orig_offset = XFS_BUF_PTR(bp);
|
||||
xfs_caddr_t orig_offset = bp->b_addr;
|
||||
int orig_len = bp->b_buffer_length;
|
||||
int error, error2;
|
||||
|
||||
@@ -1260,7 +1260,7 @@ xlog_write_log_records(
|
||||
*/
|
||||
ealign = round_down(end_block, sectbb);
|
||||
if (j == 0 && (start_block + endcount > ealign)) {
|
||||
offset = XFS_BUF_PTR(bp) + BBTOB(ealign - start_block);
|
||||
offset = bp->b_addr + BBTOB(ealign - start_block);
|
||||
error = xlog_bread_offset(log, ealign, sectbb,
|
||||
bp, offset);
|
||||
if (error)
|
||||
@@ -3433,7 +3433,7 @@ xlog_do_recovery_pass(
|
||||
/*
|
||||
* Check for header wrapping around physical end-of-log
|
||||
*/
|
||||
offset = XFS_BUF_PTR(hbp);
|
||||
offset = hbp->b_addr;
|
||||
split_hblks = 0;
|
||||
wrapped_hblks = 0;
|
||||
if (blk_no + hblks <= log->l_logBBsize) {
|
||||
@@ -3493,7 +3493,7 @@ xlog_do_recovery_pass(
|
||||
} else {
|
||||
/* This log record is split across the
|
||||
* physical end of log */
|
||||
offset = XFS_BUF_PTR(dbp);
|
||||
offset = dbp->b_addr;
|
||||
split_bblks = 0;
|
||||
if (blk_no != log->l_logBBsize) {
|
||||
/* some data is before the physical
|
||||
|
Reference in New Issue
Block a user