Lines Matching refs:bcp
1584 struct xfs_buf_cancel *bcp; in xlog_recover_buffer_pass1() local
1599 list_for_each_entry(bcp, bucket, bc_list) { in xlog_recover_buffer_pass1()
1600 if (bcp->bc_blkno == buf_f->blf_blkno && in xlog_recover_buffer_pass1()
1601 bcp->bc_len == buf_f->blf_len) { in xlog_recover_buffer_pass1()
1602 bcp->bc_refcount++; in xlog_recover_buffer_pass1()
1608 bcp = kmem_alloc(sizeof(struct xfs_buf_cancel), KM_SLEEP); in xlog_recover_buffer_pass1()
1609 bcp->bc_blkno = buf_f->blf_blkno; in xlog_recover_buffer_pass1()
1610 bcp->bc_len = buf_f->blf_len; in xlog_recover_buffer_pass1()
1611 bcp->bc_refcount = 1; in xlog_recover_buffer_pass1()
1612 list_add_tail(&bcp->bc_list, bucket); in xlog_recover_buffer_pass1()
1631 struct xfs_buf_cancel *bcp; in xlog_peek_buffer_cancelled() local
1640 list_for_each_entry(bcp, bucket, bc_list) { in xlog_peek_buffer_cancelled()
1641 if (bcp->bc_blkno == blkno && bcp->bc_len == len) in xlog_peek_buffer_cancelled()
1642 return bcp; in xlog_peek_buffer_cancelled()
1670 struct xfs_buf_cancel *bcp; in xlog_check_buffer_cancelled() local
1672 bcp = xlog_peek_buffer_cancelled(log, blkno, len, flags); in xlog_check_buffer_cancelled()
1673 if (!bcp) in xlog_check_buffer_cancelled()
1683 if (--bcp->bc_refcount == 0) { in xlog_check_buffer_cancelled()
1684 list_del(&bcp->bc_list); in xlog_check_buffer_cancelled()
1685 kmem_free(bcp); in xlog_check_buffer_cancelled()