@@ -102,11 +102,10 @@ enum xfs_buf_flags_t { /* b_flags bits */
#define XFS_BUF_SIZE(bp) ((bp)->b_bcount)
#define XFS_BUF_SET_PTR(bp,p,cnt) ({ \
(bp)->b_addr = (char *)(p); \
- XFS_BUF_SET_COUNT(bp,cnt); \
+ (bp)->b_bcount = (cnt); \
})
#define XFS_BUF_SET_ADDR(bp,blk) ((bp)->b_bn = (blk))
-#define XFS_BUF_SET_COUNT(bp,cnt) ((bp)->b_bcount = (cnt))
#define XFS_BUF_SET_PRIORITY(bp,pri) cache_node_set_priority( \
libxfs_bcache, \
@@ -131,7 +131,7 @@ xlog_bread_noalign(
ASSERT(BBTOB(nbblks) <= XFS_BUF_SIZE(bp));
XFS_BUF_SET_ADDR(bp, log->l_logBBstart + blk_no);
- XFS_BUF_SET_COUNT(bp, BBTOB(nbblks));
+ bp->b_bcount = BBTOB(nbblks);
bp->b_error = 0;
return libxfs_readbufr(log->l_dev, XFS_BUF_ADDR(bp), bp, nbblks, 0);
Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com> --- V2: Fix indentation libxfs/libxfs_io.h | 3 +-- libxlog/xfs_log_recover.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-)