Lines Matching refs:bcp
1942 struct xfs_buf_cancel *bcp; in xlog_recover_buffer_pass1() local
1957 list_for_each_entry(bcp, bucket, bc_list) { in xlog_recover_buffer_pass1()
1958 if (bcp->bc_blkno == buf_f->blf_blkno && in xlog_recover_buffer_pass1()
1959 bcp->bc_len == buf_f->blf_len) { in xlog_recover_buffer_pass1()
1960 bcp->bc_refcount++; in xlog_recover_buffer_pass1()
1966 bcp = kmem_alloc(sizeof(struct xfs_buf_cancel), 0); in xlog_recover_buffer_pass1()
1967 bcp->bc_blkno = buf_f->blf_blkno; in xlog_recover_buffer_pass1()
1968 bcp->bc_len = buf_f->blf_len; in xlog_recover_buffer_pass1()
1969 bcp->bc_refcount = 1; in xlog_recover_buffer_pass1()
1970 list_add_tail(&bcp->bc_list, bucket); in xlog_recover_buffer_pass1()
1989 struct xfs_buf_cancel *bcp; in xlog_peek_buffer_cancelled() local
1998 list_for_each_entry(bcp, bucket, bc_list) { in xlog_peek_buffer_cancelled()
1999 if (bcp->bc_blkno == blkno && bcp->bc_len == len) in xlog_peek_buffer_cancelled()
2000 return bcp; in xlog_peek_buffer_cancelled()
2028 struct xfs_buf_cancel *bcp; in xlog_check_buffer_cancelled() local
2030 bcp = xlog_peek_buffer_cancelled(log, blkno, len, flags); in xlog_check_buffer_cancelled()
2031 if (!bcp) in xlog_check_buffer_cancelled()
2041 if (--bcp->bc_refcount == 0) { in xlog_check_buffer_cancelled()
2042 list_del(&bcp->bc_list); in xlog_check_buffer_cancelled()
2043 kmem_free(bcp); in xlog_check_buffer_cancelled()