[PATCH 2/9] xfs: remove XFS_BUF_FINISH_IOWAIT

Christoph Hellwig
2011-10-06T21:06:41Z

[-- Attachment #1: xfs-kill-XFS_BUF_FINISH_IOWAIT --]
[-- Type: text/plain, Size: 1051 bytes --]

Signed-off-by: Christoph Hellwig <hch@lst.de>

Index: xfs/fs/xfs/xfs_buf.c
===================================================================
--- xfs.orig/fs/xfs/xfs_buf.c 2011-10-02 14:06:02.936771751 +0200
+++ xfs/fs/xfs/xfs_buf.c 2011-10-02 14:06:08.028771236 +0200
@@ -1100,7 +1100,7 @@ xfs_bioerror_relse(
* ASYNC buffers.
*/
xfs_buf_ioerror(bp, EIO);
- XFS_BUF_FINISH_IOWAIT(bp);
+ complete(&bp->b_iowait);
} else {
xfs_buf_relse(bp);
}
Index: xfs/fs/xfs/xfs_buf.h
===================================================================
--- xfs.orig/fs/xfs/xfs_buf.h 2011-10-02 14:06:02.936771751 +0200
+++ xfs/fs/xfs/xfs_buf.h 2011-10-02 14:06:08.028771236 +0200
@@ -293,8 +293,6 @@ static inline int xfs_buf_ispinned(struc
return atomic_read(&bp->b_pin_count);
}

-#define XFS_BUF_FINISH_IOWAIT(bp) complete(&bp->b_iowait);
-
static inline void xfs_buf_relse(xfs_buf_t *bp)
{
xfs_buf_unlock(bp);