xfs: kill xfs_bawrite
There are no more users of this function left in the XFS code now that we've switched everything to delayed write flushing. Remove it. Signed-off-by: Dave Chinner <david@fromorbit.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
@@ -1078,25 +1078,6 @@ xfs_bwrite(
|
|||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
xfs_bawrite(
|
|
||||||
void *mp,
|
|
||||||
struct xfs_buf *bp)
|
|
||||||
{
|
|
||||||
trace_xfs_buf_bawrite(bp, _RET_IP_);
|
|
||||||
|
|
||||||
ASSERT(bp->b_bn != XFS_BUF_DADDR_NULL);
|
|
||||||
|
|
||||||
xfs_buf_delwri_dequeue(bp);
|
|
||||||
|
|
||||||
bp->b_flags &= ~(XBF_READ | XBF_DELWRI | XBF_READ_AHEAD);
|
|
||||||
bp->b_flags |= (XBF_WRITE | XBF_ASYNC | _XBF_RUN_QUEUES);
|
|
||||||
|
|
||||||
bp->b_mount = mp;
|
|
||||||
bp->b_strat = xfs_bdstrat_cb;
|
|
||||||
return xfs_bdstrat_cb(bp);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
xfs_bdwrite(
|
xfs_bdwrite(
|
||||||
void *mp,
|
void *mp,
|
||||||
|
@@ -233,7 +233,6 @@ extern void xfs_buf_unlock(xfs_buf_t *);
|
|||||||
|
|
||||||
/* Buffer Read and Write Routines */
|
/* Buffer Read and Write Routines */
|
||||||
extern int xfs_bwrite(struct xfs_mount *mp, struct xfs_buf *bp);
|
extern int xfs_bwrite(struct xfs_mount *mp, struct xfs_buf *bp);
|
||||||
extern int xfs_bawrite(void *mp, xfs_buf_t *bp);
|
|
||||||
extern void xfs_bdwrite(void *mp, xfs_buf_t *bp);
|
extern void xfs_bdwrite(void *mp, xfs_buf_t *bp);
|
||||||
|
|
||||||
extern void xfsbdstrat(struct xfs_mount *, struct xfs_buf *);
|
extern void xfsbdstrat(struct xfs_mount *, struct xfs_buf *);
|
||||||
|
Reference in New Issue
Block a user