]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
xfs: Remove the macro XFS_BUF_SET_TARGET
authorChandra Seetharaman <sekharan@us.ibm.com>
Fri, 22 Jul 2011 23:40:33 +0000 (23:40 +0000)
committerAlex Elder <aelder@sgi.com>
Mon, 25 Jul 2011 20:03:26 +0000 (15:03 -0500)
Remove the macro XFS_BUF_SET_TARGET.

hch: As all the buffer allocator already set ->b_target it should be safe
to simply remove these calls.

Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/linux-2.6/xfs_buf.h
fs/xfs/xfs_log_recover.c

index f4e3de65ebe7b8995230bdc401ed237b95476713..6a38b2d21ea006fafb7c0a59ea6d3b9e847bf667 100644 (file)
@@ -292,7 +292,6 @@ static inline int xfs_buf_ispinned(struct xfs_buf *bp)
 
 #define XFS_BUF_FINISH_IOWAIT(bp)      complete(&bp->b_iowait);
 
-#define XFS_BUF_SET_TARGET(bp, target) ((bp)->b_target = (target))
 #define XFS_BUF_TARGET(bp)             ((bp)->b_target)
 #define XFS_BUFTARG_NAME(target)       xfs_buf_target_name(target)
 
index aaf61d5eefb9c6c9be36b7237c26a29cd15e6e6a..93786e518d87c9370ba957485ec67205220a61e3 100644 (file)
@@ -179,7 +179,6 @@ xlog_bread_noalign(
        XFS_BUF_SET_ADDR(bp, log->l_logBBstart + blk_no);
        XFS_BUF_READ(bp);
        XFS_BUF_SET_COUNT(bp, BBTOB(nbblks));
-       XFS_BUF_SET_TARGET(bp, log->l_mp->m_logdev_targp);
 
        xfsbdstrat(log->l_mp, bp);
        error = xfs_buf_iowait(bp);
@@ -268,7 +267,6 @@ xlog_bwrite(
        xfs_buf_hold(bp);
        xfs_buf_lock(bp);
        XFS_BUF_SET_COUNT(bp, BBTOB(nbblks));
-       XFS_BUF_SET_TARGET(bp, log->l_mp->m_logdev_targp);
 
        if ((error = xfs_bwrite(log->l_mp, bp)))
                xfs_ioerror_alert("xlog_bwrite", log->l_mp,