aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
authorChandra Seetharaman <sekharan@us.ibm.com>2011-07-22 19:40:33 -0400
committerAlex Elder <aelder@sgi.com>2011-07-25 16:03:26 -0400
commite38c9b87e5b428b3e2a2e48ab0ee2b6cdc8e6208 (patch)
treee5f07f9f838a3e1a990410b0851ed3d111380ac7 /fs/xfs
parent811e64c7169bb59229971c4aa3b1ed5093f44c84 (diff)
xfs: Remove the macro XFS_BUF_SET_TARGET
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>
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/linux-2.6/xfs_buf.h1
-rw-r--r--fs/xfs/xfs_log_recover.c2
2 files changed, 0 insertions, 3 deletions
diff --git a/fs/xfs/linux-2.6/xfs_buf.h b/fs/xfs/linux-2.6/xfs_buf.h
index f4e3de65ebe7..6a38b2d21ea0 100644
--- a/fs/xfs/linux-2.6/xfs_buf.h
+++ b/fs/xfs/linux-2.6/xfs_buf.h
@@ -292,7 +292,6 @@ static inline int xfs_buf_ispinned(struct xfs_buf *bp)
292 292
293#define XFS_BUF_FINISH_IOWAIT(bp) complete(&bp->b_iowait); 293#define XFS_BUF_FINISH_IOWAIT(bp) complete(&bp->b_iowait);
294 294
295#define XFS_BUF_SET_TARGET(bp, target) ((bp)->b_target = (target))
296#define XFS_BUF_TARGET(bp) ((bp)->b_target) 295#define XFS_BUF_TARGET(bp) ((bp)->b_target)
297#define XFS_BUFTARG_NAME(target) xfs_buf_target_name(target) 296#define XFS_BUFTARG_NAME(target) xfs_buf_target_name(target)
298 297
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c
index aaf61d5eefb9..93786e518d87 100644
--- a/fs/xfs/xfs_log_recover.c
+++ b/fs/xfs/xfs_log_recover.c
@@ -179,7 +179,6 @@ xlog_bread_noalign(
179 XFS_BUF_SET_ADDR(bp, log->l_logBBstart + blk_no); 179 XFS_BUF_SET_ADDR(bp, log->l_logBBstart + blk_no);
180 XFS_BUF_READ(bp); 180 XFS_BUF_READ(bp);
181 XFS_BUF_SET_COUNT(bp, BBTOB(nbblks)); 181 XFS_BUF_SET_COUNT(bp, BBTOB(nbblks));
182 XFS_BUF_SET_TARGET(bp, log->l_mp->m_logdev_targp);
183 182
184 xfsbdstrat(log->l_mp, bp); 183 xfsbdstrat(log->l_mp, bp);
185 error = xfs_buf_iowait(bp); 184 error = xfs_buf_iowait(bp);
@@ -268,7 +267,6 @@ xlog_bwrite(
268 xfs_buf_hold(bp); 267 xfs_buf_hold(bp);
269 xfs_buf_lock(bp); 268 xfs_buf_lock(bp);
270 XFS_BUF_SET_COUNT(bp, BBTOB(nbblks)); 269 XFS_BUF_SET_COUNT(bp, BBTOB(nbblks));
271 XFS_BUF_SET_TARGET(bp, log->l_mp->m_logdev_targp);
272 270
273 if ((error = xfs_bwrite(log->l_mp, bp))) 271 if ((error = xfs_bwrite(log->l_mp, bp)))
274 xfs_ioerror_alert("xlog_bwrite", log->l_mp, 272 xfs_ioerror_alert("xlog_bwrite", log->l_mp,