@@ -219,7 +219,6 @@ extern int libxfs_bcache_overflowed(void);
extern xfs_buf_t *libxfs_getbufr(struct xfs_buftarg *, xfs_daddr_t, int);
extern void libxfs_putbufr(xfs_buf_t *);
-extern int libxfs_writebuf_int(xfs_buf_t *, int);
int libxfs_bwrite(struct xfs_buf *);
extern int libxfs_readbufr(struct xfs_buftarg *, xfs_daddr_t, xfs_buf_t *, int, int);
extern int libxfs_readbufr_map(struct xfs_buftarg *, struct xfs_buf *, int);
@@ -1225,19 +1225,6 @@ libxfs_bwrite(
return bp->b_error;
}
-int
-libxfs_writebuf_int(xfs_buf_t *bp, int flags)
-{
- /*
- * Clear any error hanging over from reading the buffer. This prevents
- * subsequent reads after this write from seeing stale errors.
- */
- bp->b_error = 0;
- bp->b_flags &= ~LIBXFS_B_STALE;
- bp->b_flags |= (LIBXFS_B_DIRTY | flags);
- return 0;
-}
-
/*
* Mark a buffer dirty. The dirty data will be written out when the cache
* is flushed (or at release time if the buffer is uncached).
@@ -863,7 +863,7 @@ buf_item_done(
hold = (bip->bli_flags & XFS_BLI_HOLD);
if (bip->bli_flags & XFS_BLI_DIRTY)
- libxfs_writebuf_int(bp, 0);
+ libxfs_buf_dirty(bp, 0);
bip->bli_flags &= ~XFS_BLI_HOLD;
xfs_buf_item_put(bip);