xfs: unwind log item error flagging
When an buffer IO error occurs, we want to mark all the log items attached to the buffer as failed. Open code the error handling loop so that we can modify the flagging for the different types of objects directly and independently of each other. This also allows us to remove the ->iop_error method from the log item operations. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
committed by
Darrick J. Wong
parent
428947e9d5
commit
3536b61e74
@ -74,7 +74,6 @@ struct xfs_item_ops {
|
||||
void (*iop_committing)(struct xfs_log_item *, xfs_lsn_t commit_lsn);
|
||||
void (*iop_release)(struct xfs_log_item *);
|
||||
xfs_lsn_t (*iop_committed)(struct xfs_log_item *, xfs_lsn_t);
|
||||
void (*iop_error)(struct xfs_log_item *, xfs_buf_t *);
|
||||
int (*iop_recover)(struct xfs_log_item *lip, struct xfs_trans *tp);
|
||||
bool (*iop_match)(struct xfs_log_item *item, uint64_t id);
|
||||
};
|
||||
|
Reference in New Issue
Block a user