Lines Matching refs:bcp
56 struct xfs_buf_cancel *bcp; in xlog_find_buffer_cancelled() local
62 list_for_each_entry(bcp, bucket, bc_list) { in xlog_find_buffer_cancelled()
63 if (bcp->bc_blkno == blkno && bcp->bc_len == len) in xlog_find_buffer_cancelled()
64 return bcp; in xlog_find_buffer_cancelled()
76 struct xfs_buf_cancel *bcp; in xlog_add_buffer_cancelled() local
85 bcp = xlog_find_buffer_cancelled(log, blkno, len); in xlog_add_buffer_cancelled()
86 if (bcp) { in xlog_add_buffer_cancelled()
87 bcp->bc_refcount++; in xlog_add_buffer_cancelled()
91 bcp = kmalloc(sizeof(struct xfs_buf_cancel), GFP_KERNEL | __GFP_NOFAIL); in xlog_add_buffer_cancelled()
92 bcp->bc_blkno = blkno; in xlog_add_buffer_cancelled()
93 bcp->bc_len = len; in xlog_add_buffer_cancelled()
94 bcp->bc_refcount = 1; in xlog_add_buffer_cancelled()
95 list_add_tail(&bcp->bc_list, XLOG_BUF_CANCEL_BUCKET(log, blkno)); in xlog_add_buffer_cancelled()
125 struct xfs_buf_cancel *bcp; in xlog_put_buffer_cancelled() local
127 bcp = xlog_find_buffer_cancelled(log, blkno, len); in xlog_put_buffer_cancelled()
128 if (!bcp) { in xlog_put_buffer_cancelled()
133 if (--bcp->bc_refcount == 0) { in xlog_put_buffer_cancelled()
134 list_del(&bcp->bc_list); in xlog_put_buffer_cancelled()
135 kfree(bcp); in xlog_put_buffer_cancelled()