48 struct xfs_buf_log_item *blip;
52 for (i = 0; i < nmaps; i++)
56 blip = (
struct xfs_buf_log_item *)lidp->
lid_item;
58 blip->bli_buf->b_target == target &&
60 blip->bli_buf->b_length == len) {
61 ASSERT(blip->bli_buf->b_map_count == nmaps);
84 struct xfs_buf_log_item *bip;
121 struct xfs_trans *tp,
125 trace_xfs_trans_bjoin(bp->
b_fspriv);
139 struct xfs_trans *tp,
146 xfs_buf_log_item_t *bip;
160 if (XFS_FORCED_SHUTDOWN(tp->t_mountp)) {
170 trace_xfs_trans_get_buf_recur(bip);
182 trace_xfs_trans_get_buf(bp->
b_fspriv);
196 struct xfs_mount *
mp,
200 xfs_buf_log_item_t *bip;
222 trace_xfs_trans_getsb_recur(bip);
231 trace_xfs_trans_getsb(bp->
b_fspriv);
239 int xfs_error_mod = 33;
254 struct xfs_mount *
mp,
255 struct xfs_trans *tp,
263 xfs_buf_log_item_t *bip;
283 if (xfs_error_target == target) {
284 if (((xfs_req_num++) % xfs_error_mod) == 0) {
286 xfs_debug(mp,
"Returning error!");
292 if (XFS_FORCED_SHUTDOWN(mp))
313 trace_xfs_trans_read_buf_io(bp,
_RET_IP_);
327 xfs_force_shutdown(tp->t_mountp,
328 SHUTDOWN_META_IO_ERROR);
336 if (XFS_FORCED_SHUTDOWN(mp)) {
337 trace_xfs_trans_read_buf_shut(bp,
_RET_IP_);
347 trace_xfs_trans_read_buf_recur(bip);
364 xfs_force_shutdown(tp->t_mountp, SHUTDOWN_META_IO_ERROR);
370 if (xfs_error_target == target) {
371 if (((xfs_req_num++) % xfs_error_mod) == 0) {
372 xfs_force_shutdown(tp->t_mountp,
373 SHUTDOWN_META_IO_ERROR);
375 xfs_debug(mp,
"Returning trans error!");
381 if (XFS_FORCED_SHUTDOWN(mp))
385 trace_xfs_trans_read_buf(bp->
b_fspriv);
391 trace_xfs_trans_read_buf_shut(bp,
_RET_IP_);
417 xfs_buf_log_item_t *bip;
435 trace_xfs_trans_brelse(bip);
441 if (bip->bli_recur > 0) {
495 ASSERT(!(bip->bli_item.li_flags & XFS_LI_IN_AIL));
514 xfs_buf_log_item_t *bip = bp->
b_fspriv;
523 trace_xfs_trans_bhold(bip);
534 xfs_buf_log_item_t *bip = bp->
b_fspriv;
544 trace_xfs_trans_bhold_release(bip);
562 xfs_buf_log_item_t *bip = bp->
b_fspriv;
586 trace_xfs_trans_log_buf(bip);
642 xfs_buf_log_item_t *bip = bp->
b_fspriv;
648 trace_xfs_trans_binval(bip);
670 memset((
char *)(bip->bli_format.blf_data_map), 0,
671 (bip->bli_format.blf_map_size *
sizeof(
uint)));
692 xfs_buf_log_item_t *bip = bp->
b_fspriv;
715 xfs_buf_log_item_t *bip = bp->
b_fspriv;
739 xfs_buf_log_item_t *bip = bp->
b_fspriv;
766 xfs_buf_log_item_t *bip = bp->
b_fspriv;
775 bip->bli_format.blf_flags |=
type;