Lines Matching refs:bcp
2019 struct xfs_buf_cancel *bcp; in xlog_recover_buffer_pass1() local
2034 list_for_each_entry(bcp, bucket, bc_list) { in xlog_recover_buffer_pass1()
2035 if (bcp->bc_blkno == buf_f->blf_blkno && in xlog_recover_buffer_pass1()
2036 bcp->bc_len == buf_f->blf_len) { in xlog_recover_buffer_pass1()
2037 bcp->bc_refcount++; in xlog_recover_buffer_pass1()
2043 bcp = kmem_alloc(sizeof(struct xfs_buf_cancel), KM_SLEEP); in xlog_recover_buffer_pass1()
2044 bcp->bc_blkno = buf_f->blf_blkno; in xlog_recover_buffer_pass1()
2045 bcp->bc_len = buf_f->blf_len; in xlog_recover_buffer_pass1()
2046 bcp->bc_refcount = 1; in xlog_recover_buffer_pass1()
2047 list_add_tail(&bcp->bc_list, bucket); in xlog_recover_buffer_pass1()
2066 struct xfs_buf_cancel *bcp; in xlog_peek_buffer_cancelled() local
2075 list_for_each_entry(bcp, bucket, bc_list) { in xlog_peek_buffer_cancelled()
2076 if (bcp->bc_blkno == blkno && bcp->bc_len == len) in xlog_peek_buffer_cancelled()
2077 return bcp; in xlog_peek_buffer_cancelled()
2105 struct xfs_buf_cancel *bcp; in xlog_check_buffer_cancelled() local
2107 bcp = xlog_peek_buffer_cancelled(log, blkno, len, flags); in xlog_check_buffer_cancelled()
2108 if (!bcp) in xlog_check_buffer_cancelled()
2118 if (--bcp->bc_refcount == 0) { in xlog_check_buffer_cancelled()
2119 list_del(&bcp->bc_list); in xlog_check_buffer_cancelled()
2120 kmem_free(bcp); in xlog_check_buffer_cancelled()