Lines Matching refs:bcp
53 struct xfs_buf_cancel *bcp; in xlog_find_buffer_cancelled() local
59 list_for_each_entry(bcp, bucket, bc_list) { in xlog_find_buffer_cancelled()
60 if (bcp->bc_blkno == blkno && bcp->bc_len == len) in xlog_find_buffer_cancelled()
61 return bcp; in xlog_find_buffer_cancelled()
73 struct xfs_buf_cancel *bcp; in xlog_add_buffer_cancelled() local
82 bcp = xlog_find_buffer_cancelled(log, blkno, len); in xlog_add_buffer_cancelled()
83 if (bcp) { in xlog_add_buffer_cancelled()
84 bcp->bc_refcount++; in xlog_add_buffer_cancelled()
88 bcp = kmem_alloc(sizeof(struct xfs_buf_cancel), 0); in xlog_add_buffer_cancelled()
89 bcp->bc_blkno = blkno; in xlog_add_buffer_cancelled()
90 bcp->bc_len = len; in xlog_add_buffer_cancelled()
91 bcp->bc_refcount = 1; in xlog_add_buffer_cancelled()
92 list_add_tail(&bcp->bc_list, XLOG_BUF_CANCEL_BUCKET(log, blkno)); in xlog_add_buffer_cancelled()
122 struct xfs_buf_cancel *bcp; in xlog_put_buffer_cancelled() local
124 bcp = xlog_find_buffer_cancelled(log, blkno, len); in xlog_put_buffer_cancelled()
125 if (!bcp) { in xlog_put_buffer_cancelled()
130 if (--bcp->bc_refcount == 0) { in xlog_put_buffer_cancelled()
131 list_del(&bcp->bc_list); in xlog_put_buffer_cancelled()
132 kmem_free(bcp); in xlog_put_buffer_cancelled()