Lines Matching refs:bip

66 	struct xfs_buf_log_item	*bip;  in _xfs_trans_bjoin()  local
76 bip = bp->b_log_item; in _xfs_trans_bjoin()
77 ASSERT(!(bip->bli_flags & XFS_BLI_STALE)); in _xfs_trans_bjoin()
78 ASSERT(!(bip->__bli_format.blf_flags & XFS_BLF_CANCEL)); in _xfs_trans_bjoin()
79 ASSERT(!(bip->bli_flags & XFS_BLI_LOGGED)); in _xfs_trans_bjoin()
81 bip->bli_recur = 0; in _xfs_trans_bjoin()
86 atomic_inc(&bip->bli_refcount); in _xfs_trans_bjoin()
92 xfs_trans_add_item(tp, &bip->bli_item); in _xfs_trans_bjoin()
125 struct xfs_buf_log_item *bip; in xfs_trans_get_buf_map() local
147 bip = bp->b_log_item; in xfs_trans_get_buf_map()
148 ASSERT(bip != NULL); in xfs_trans_get_buf_map()
149 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_get_buf_map()
150 bip->bli_recur++; in xfs_trans_get_buf_map()
151 trace_xfs_trans_get_buf_recur(bip); in xfs_trans_get_buf_map()
182 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_trans_getsb() local
184 ASSERT(bip != NULL); in xfs_trans_getsb()
185 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_getsb()
186 bip->bli_recur++; in xfs_trans_getsb()
188 trace_xfs_trans_getsb_recur(bip); in xfs_trans_getsb()
222 struct xfs_buf_log_item *bip; in xfs_trans_read_buf_map() local
279 bip = bp->b_log_item; in xfs_trans_read_buf_map()
280 bip->bli_recur++; in xfs_trans_read_buf_map()
282 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_read_buf_map()
283 trace_xfs_trans_read_buf_recur(bip); in xfs_trans_read_buf_map()
324 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_trans_buf_is_dirty() local
326 if (!bip) in xfs_trans_buf_is_dirty()
328 ASSERT(bip->bli_item.li_type == XFS_LI_BUF); in xfs_trans_buf_is_dirty()
329 return test_bit(XFS_LI_DIRTY, &bip->bli_item.li_flags); in xfs_trans_buf_is_dirty()
349 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_trans_brelse() local
358 trace_xfs_trans_brelse(bip); in xfs_trans_brelse()
359 ASSERT(bip->bli_item.li_type == XFS_LI_BUF); in xfs_trans_brelse()
360 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_brelse()
366 if (bip->bli_recur > 0) { in xfs_trans_brelse()
367 bip->bli_recur--; in xfs_trans_brelse()
375 if (test_bit(XFS_LI_DIRTY, &bip->bli_item.li_flags)) in xfs_trans_brelse()
377 if (bip->bli_flags & XFS_BLI_STALE) in xfs_trans_brelse()
384 ASSERT(!(bip->bli_flags & XFS_BLI_LOGGED)); in xfs_trans_brelse()
385 xfs_trans_del_item(&bip->bli_item); in xfs_trans_brelse()
386 bip->bli_flags &= ~XFS_BLI_HOLD; in xfs_trans_brelse()
389 xfs_buf_item_put(bip); in xfs_trans_brelse()
405 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_trans_bdetach() local
409 ASSERT(bip->bli_item.li_type == XFS_LI_BUF); in xfs_trans_bdetach()
410 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_bdetach()
412 trace_xfs_trans_bdetach(bip); in xfs_trans_bdetach()
418 bip->bli_recur = 0; in xfs_trans_bdetach()
424 ASSERT(!test_bit(XFS_LI_DIRTY, &bip->bli_item.li_flags)); in xfs_trans_bdetach()
425 ASSERT(!(bip->bli_flags & XFS_BLI_DIRTY)); in xfs_trans_bdetach()
426 ASSERT(!(bip->bli_flags & XFS_BLI_HOLD)); in xfs_trans_bdetach()
427 ASSERT(!(bip->bli_flags & XFS_BLI_LOGGED)); in xfs_trans_bdetach()
428 ASSERT(!(bip->bli_flags & XFS_BLI_ORDERED)); in xfs_trans_bdetach()
429 ASSERT(!(bip->bli_flags & XFS_BLI_STALE)); in xfs_trans_bdetach()
432 xfs_trans_del_item(&bip->bli_item); in xfs_trans_bdetach()
433 xfs_buf_item_put(bip); in xfs_trans_bdetach()
448 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_trans_bhold() local
451 ASSERT(bip != NULL); in xfs_trans_bhold()
452 ASSERT(!(bip->bli_flags & XFS_BLI_STALE)); in xfs_trans_bhold()
453 ASSERT(!(bip->__bli_format.blf_flags & XFS_BLF_CANCEL)); in xfs_trans_bhold()
454 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_bhold()
456 bip->bli_flags |= XFS_BLI_HOLD; in xfs_trans_bhold()
457 trace_xfs_trans_bhold(bip); in xfs_trans_bhold()
469 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_trans_bhold_release() local
472 ASSERT(bip != NULL); in xfs_trans_bhold_release()
473 ASSERT(!(bip->bli_flags & XFS_BLI_STALE)); in xfs_trans_bhold_release()
474 ASSERT(!(bip->__bli_format.blf_flags & XFS_BLF_CANCEL)); in xfs_trans_bhold_release()
475 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_bhold_release()
476 ASSERT(bip->bli_flags & XFS_BLI_HOLD); in xfs_trans_bhold_release()
478 bip->bli_flags &= ~XFS_BLI_HOLD; in xfs_trans_bhold_release()
479 trace_xfs_trans_bhold_release(bip); in xfs_trans_bhold_release()
490 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_trans_dirty_buf() local
493 ASSERT(bip != NULL); in xfs_trans_dirty_buf()
503 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_dirty_buf()
511 if (bip->bli_flags & XFS_BLI_STALE) { in xfs_trans_dirty_buf()
512 bip->bli_flags &= ~XFS_BLI_STALE; in xfs_trans_dirty_buf()
515 bip->__bli_format.blf_flags &= ~XFS_BLF_CANCEL; in xfs_trans_dirty_buf()
517 bip->bli_flags |= XFS_BLI_DIRTY | XFS_BLI_LOGGED; in xfs_trans_dirty_buf()
520 set_bit(XFS_LI_DIRTY, &bip->bli_item.li_flags); in xfs_trans_dirty_buf()
539 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_trans_log_buf() local
542 ASSERT(!(bip->bli_flags & XFS_BLI_ORDERED)); in xfs_trans_log_buf()
546 trace_xfs_trans_log_buf(bip); in xfs_trans_log_buf()
547 xfs_buf_item_log(bip, first, last); in xfs_trans_log_buf()
585 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_trans_binval() local
589 ASSERT(bip != NULL); in xfs_trans_binval()
590 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_binval()
592 trace_xfs_trans_binval(bip); in xfs_trans_binval()
594 if (bip->bli_flags & XFS_BLI_STALE) { in xfs_trans_binval()
600 ASSERT(!(bip->bli_flags & (XFS_BLI_LOGGED | XFS_BLI_DIRTY))); in xfs_trans_binval()
601 ASSERT(!(bip->__bli_format.blf_flags & XFS_BLF_INODE_BUF)); in xfs_trans_binval()
602 ASSERT(!(bip->__bli_format.blf_flags & XFS_BLFT_MASK)); in xfs_trans_binval()
603 ASSERT(bip->__bli_format.blf_flags & XFS_BLF_CANCEL); in xfs_trans_binval()
604 ASSERT(test_bit(XFS_LI_DIRTY, &bip->bli_item.li_flags)); in xfs_trans_binval()
611 bip->bli_flags |= XFS_BLI_STALE; in xfs_trans_binval()
612 bip->bli_flags &= ~(XFS_BLI_INODE_BUF | XFS_BLI_LOGGED | XFS_BLI_DIRTY); in xfs_trans_binval()
613 bip->__bli_format.blf_flags &= ~XFS_BLF_INODE_BUF; in xfs_trans_binval()
614 bip->__bli_format.blf_flags |= XFS_BLF_CANCEL; in xfs_trans_binval()
615 bip->__bli_format.blf_flags &= ~XFS_BLFT_MASK; in xfs_trans_binval()
616 for (i = 0; i < bip->bli_format_count; i++) { in xfs_trans_binval()
617 memset(bip->bli_formats[i].blf_data_map, 0, in xfs_trans_binval()
618 (bip->bli_formats[i].blf_map_size * sizeof(uint))); in xfs_trans_binval()
620 set_bit(XFS_LI_DIRTY, &bip->bli_item.li_flags); in xfs_trans_binval()
640 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_trans_inode_buf() local
643 ASSERT(bip != NULL); in xfs_trans_inode_buf()
644 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_inode_buf()
646 bip->bli_flags |= XFS_BLI_INODE_BUF; in xfs_trans_inode_buf()
665 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_trans_stale_inode_buf() local
668 ASSERT(bip != NULL); in xfs_trans_stale_inode_buf()
669 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_stale_inode_buf()
671 bip->bli_flags |= XFS_BLI_STALE_INODE; in xfs_trans_stale_inode_buf()
690 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_trans_inode_alloc_buf() local
693 ASSERT(bip != NULL); in xfs_trans_inode_alloc_buf()
694 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_inode_alloc_buf()
696 bip->bli_flags |= XFS_BLI_INODE_ALLOC_BUF; in xfs_trans_inode_alloc_buf()
713 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_trans_ordered_buf() local
716 ASSERT(bip != NULL); in xfs_trans_ordered_buf()
717 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_ordered_buf()
719 if (xfs_buf_item_dirty_format(bip)) in xfs_trans_ordered_buf()
722 bip->bli_flags |= XFS_BLI_ORDERED; in xfs_trans_ordered_buf()
723 trace_xfs_buf_item_ordered(bip); in xfs_trans_ordered_buf()
743 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_trans_buf_set_type() local
749 ASSERT(bip != NULL); in xfs_trans_buf_set_type()
750 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_buf_set_type()
752 xfs_blft_to_flags(&bip->__bli_format, type); in xfs_trans_buf_set_type()
785 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_trans_dquot_buf() local
791 bip->__bli_format.blf_flags |= type; in xfs_trans_dquot_buf()