summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_buf.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-09-01 19:55:44 +0200
committerDarrick J. Wong <darrick.wong@oracle.com>2020-09-16 05:52:38 +0200
commit6a7584b1d82b7b9fcce02ee7aeddc58f9cebbccc (patch)
tree4898cc96725abf2f0f29885344d3e03ce884f72c /fs/xfs/xfs_buf.h
parentxfs: move the buffer retry logic to xfs_buf.c (diff)
downloadlinux-6a7584b1d82b7b9fcce02ee7aeddc58f9cebbccc.tar.xz
linux-6a7584b1d82b7b9fcce02ee7aeddc58f9cebbccc.zip
xfs: fold xfs_buf_ioend_finish into xfs_ioend
No need to keep a separate helper for this logic. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_buf.h')
-rw-r--r--fs/xfs/xfs_buf.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/xfs/xfs_buf.h b/fs/xfs/xfs_buf.h
index bea20d43a381..9eb4044597c9 100644
--- a/fs/xfs/xfs_buf.h
+++ b/fs/xfs/xfs_buf.h
@@ -269,13 +269,6 @@ static inline void xfs_buf_relse(xfs_buf_t *bp)
/* Buffer Read and Write Routines */
extern int xfs_bwrite(struct xfs_buf *bp);
-static inline void xfs_buf_ioend_finish(struct xfs_buf *bp)
-{
- if (bp->b_flags & XBF_ASYNC)
- xfs_buf_relse(bp);
- else
- complete(&bp->b_iowait);
-}
extern void __xfs_buf_ioerror(struct xfs_buf *bp, int error,
xfs_failaddr_t failaddr);