xfs: Remove the macro XFS_BUF_SET_PTR
authorChandra Seetharaman <sekharan@us.ibm.com>
Fri, 22 Jul 2011 23:40:22 +0000 (23:40 +0000)
committerAlex Elder <aelder@sgi.com>
Mon, 25 Jul 2011 20:03:17 +0000 (15:03 -0500)
Remove the definition and usages of the macro XFS_BUF_SET_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>
fs/xfs/linux-2.6/xfs_buf.h
fs/xfs/xfs_log.c
fs/xfs/xfs_log_recover.c

index f0aa94703cf5405bc928560c3f50fea72d0ef766..c5601e1e0f46de16f2847b51120423c452097936 100644 (file)
@@ -266,7 +266,6 @@ void xfs_buf_stale(struct xfs_buf *bp);
 #define XFS_BUF_UNWRITE(bp)    ((bp)->b_flags &= ~XBF_WRITE)
 #define XFS_BUF_ISWRITE(bp)    ((bp)->b_flags & XBF_WRITE)
 
-#define XFS_BUF_SET_PTR(bp, val, cnt)  xfs_buf_associate_memory(bp, val, cnt)
 #define XFS_BUF_ADDR(bp)               ((bp)->b_bn)
 #define XFS_BUF_SET_ADDR(bp, bno)      ((bp)->b_bn = (xfs_daddr_t)(bno))
 #define XFS_BUF_OFFSET(bp)             ((bp)->b_file_offset)
index 3f1fa7bb9e3d84ccae85c82dbd9778076d931a58..3a8d4f66d70253089410b3a8cdb1f52868e5a3bd 100644 (file)
@@ -1395,8 +1395,8 @@ xlog_sync(xlog_t          *log,
        if (split) {
                bp = iclog->ic_log->l_xbuf;
                XFS_BUF_SET_ADDR(bp, 0);             /* logical 0 */
-               XFS_BUF_SET_PTR(bp, (xfs_caddr_t)((__psint_t)&(iclog->ic_header)+
-                                           (__psint_t)count), split);
+               xfs_buf_associate_memory(bp,
+                               (char *)&iclog->ic_header + count, split);
                bp->b_fspriv = iclog;
                XFS_BUF_ZEROFLAGS(bp);
                XFS_BUF_ASYNC(bp);
index 1ac295da9f1708acc3160330b345a3de125abffb..aaf61d5eefb9c6c9be36b7237c26a29cd15e6e6a 100644 (file)
@@ -223,14 +223,14 @@ xlog_bread_offset(
        int             orig_len = bp->b_buffer_length;
        int             error, error2;
 
-       error = XFS_BUF_SET_PTR(bp, offset, BBTOB(nbblks));
+       error = xfs_buf_associate_memory(bp, offset, BBTOB(nbblks));
        if (error)
                return error;
 
        error = xlog_bread_noalign(log, blk_no, nbblks, bp);
 
        /* must reset buffer pointer even on error */
-       error2 = XFS_BUF_SET_PTR(bp, orig_offset, orig_len);
+       error2 = xfs_buf_associate_memory(bp, orig_offset, orig_len);
        if (error)
                return error;
        return error2;
This page took 0.033056 seconds and 5 git commands to generate.