xfs: get rid of log item callbacks
They are not used anymore, so remove them from the log item and the buffer iodone attachment interfaces. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:

committed by
Darrick J. Wong

parent
fec671cd35
commit
2ef3f7f5db
@@ -955,23 +955,6 @@ xfs_buf_item_relse(
|
||||
xfs_buf_item_free(bip);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Add the given log item with its callback to the list of callbacks
|
||||
* to be called when the buffer's I/O completes.
|
||||
*/
|
||||
void
|
||||
xfs_buf_attach_iodone(
|
||||
struct xfs_buf *bp,
|
||||
void (*cb)(struct xfs_buf *, struct xfs_log_item *),
|
||||
struct xfs_log_item *lip)
|
||||
{
|
||||
ASSERT(xfs_buf_islocked(bp));
|
||||
|
||||
lip->li_cb = cb;
|
||||
list_add_tail(&lip->li_bio_list, &bp->b_li_list);
|
||||
}
|
||||
|
||||
/*
|
||||
* Invoke the error state callback for each log item affected by the failed I/O.
|
||||
*
|
||||
|
Reference in New Issue
Block a user