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()
406 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_trans_bhold() local
409 ASSERT(bip != NULL); in xfs_trans_bhold()
410 ASSERT(!(bip->bli_flags & XFS_BLI_STALE)); in xfs_trans_bhold()
411 ASSERT(!(bip->__bli_format.blf_flags & XFS_BLF_CANCEL)); in xfs_trans_bhold()
412 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_bhold()
414 bip->bli_flags |= XFS_BLI_HOLD; in xfs_trans_bhold()
415 trace_xfs_trans_bhold(bip); in xfs_trans_bhold()
427 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_trans_bhold_release() local
430 ASSERT(bip != NULL); in xfs_trans_bhold_release()
431 ASSERT(!(bip->bli_flags & XFS_BLI_STALE)); in xfs_trans_bhold_release()
432 ASSERT(!(bip->__bli_format.blf_flags & XFS_BLF_CANCEL)); in xfs_trans_bhold_release()
433 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_bhold_release()
434 ASSERT(bip->bli_flags & XFS_BLI_HOLD); in xfs_trans_bhold_release()
436 bip->bli_flags &= ~XFS_BLI_HOLD; in xfs_trans_bhold_release()
437 trace_xfs_trans_bhold_release(bip); in xfs_trans_bhold_release()
448 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_trans_dirty_buf() local
451 ASSERT(bip != NULL); in xfs_trans_dirty_buf()
461 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_dirty_buf()
469 if (bip->bli_flags & XFS_BLI_STALE) { in xfs_trans_dirty_buf()
470 bip->bli_flags &= ~XFS_BLI_STALE; in xfs_trans_dirty_buf()
473 bip->__bli_format.blf_flags &= ~XFS_BLF_CANCEL; in xfs_trans_dirty_buf()
475 bip->bli_flags |= XFS_BLI_DIRTY | XFS_BLI_LOGGED; in xfs_trans_dirty_buf()
478 set_bit(XFS_LI_DIRTY, &bip->bli_item.li_flags); in xfs_trans_dirty_buf()
497 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_trans_log_buf() local
500 ASSERT(!(bip->bli_flags & XFS_BLI_ORDERED)); in xfs_trans_log_buf()
504 trace_xfs_trans_log_buf(bip); in xfs_trans_log_buf()
505 xfs_buf_item_log(bip, first, last); in xfs_trans_log_buf()
543 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_trans_binval() local
547 ASSERT(bip != NULL); in xfs_trans_binval()
548 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_binval()
550 trace_xfs_trans_binval(bip); in xfs_trans_binval()
552 if (bip->bli_flags & XFS_BLI_STALE) { in xfs_trans_binval()
558 ASSERT(!(bip->bli_flags & (XFS_BLI_LOGGED | XFS_BLI_DIRTY))); in xfs_trans_binval()
559 ASSERT(!(bip->__bli_format.blf_flags & XFS_BLF_INODE_BUF)); in xfs_trans_binval()
560 ASSERT(!(bip->__bli_format.blf_flags & XFS_BLFT_MASK)); in xfs_trans_binval()
561 ASSERT(bip->__bli_format.blf_flags & XFS_BLF_CANCEL); in xfs_trans_binval()
562 ASSERT(test_bit(XFS_LI_DIRTY, &bip->bli_item.li_flags)); in xfs_trans_binval()
569 bip->bli_flags |= XFS_BLI_STALE; in xfs_trans_binval()
570 bip->bli_flags &= ~(XFS_BLI_INODE_BUF | XFS_BLI_LOGGED | XFS_BLI_DIRTY); in xfs_trans_binval()
571 bip->__bli_format.blf_flags &= ~XFS_BLF_INODE_BUF; in xfs_trans_binval()
572 bip->__bli_format.blf_flags |= XFS_BLF_CANCEL; in xfs_trans_binval()
573 bip->__bli_format.blf_flags &= ~XFS_BLFT_MASK; in xfs_trans_binval()
574 for (i = 0; i < bip->bli_format_count; i++) { in xfs_trans_binval()
575 memset(bip->bli_formats[i].blf_data_map, 0, in xfs_trans_binval()
576 (bip->bli_formats[i].blf_map_size * sizeof(uint))); in xfs_trans_binval()
578 set_bit(XFS_LI_DIRTY, &bip->bli_item.li_flags); in xfs_trans_binval()
598 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_trans_inode_buf() local
601 ASSERT(bip != NULL); in xfs_trans_inode_buf()
602 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_inode_buf()
604 bip->bli_flags |= XFS_BLI_INODE_BUF; in xfs_trans_inode_buf()
623 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_trans_stale_inode_buf() local
626 ASSERT(bip != NULL); in xfs_trans_stale_inode_buf()
627 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_stale_inode_buf()
629 bip->bli_flags |= XFS_BLI_STALE_INODE; in xfs_trans_stale_inode_buf()
648 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_trans_inode_alloc_buf() local
651 ASSERT(bip != NULL); in xfs_trans_inode_alloc_buf()
652 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_inode_alloc_buf()
654 bip->bli_flags |= XFS_BLI_INODE_ALLOC_BUF; in xfs_trans_inode_alloc_buf()
671 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_trans_ordered_buf() local
674 ASSERT(bip != NULL); in xfs_trans_ordered_buf()
675 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_ordered_buf()
677 if (xfs_buf_item_dirty_format(bip)) in xfs_trans_ordered_buf()
680 bip->bli_flags |= XFS_BLI_ORDERED; in xfs_trans_ordered_buf()
681 trace_xfs_buf_item_ordered(bip); in xfs_trans_ordered_buf()
701 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_trans_buf_set_type() local
707 ASSERT(bip != NULL); in xfs_trans_buf_set_type()
708 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_buf_set_type()
710 xfs_blft_to_flags(&bip->__bli_format, type); in xfs_trans_buf_set_type()
743 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_trans_dquot_buf() local
749 bip->__bli_format.blf_flags |= type; in xfs_trans_dquot_buf()