FreeBSD/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
/*
 * Return a loaned arc buffer to the arc.
 */
Return a loaned arc buffer to the arc.
Return a loaned arc buffer to the arc .
void
arc_return_buf(arc_buf_t *buf, void *tag)
{
	arc_buf_hdr_t *hdr = buf->b_hdr;
	ASSERT(buf->b_data != NULL);
	ASSERT(HDR_HAS_L1HDR(hdr));
	(void) refcount_add(&hdr->b_l1hdr.b_refcnt, tag);
	(void) refcount_remove(&hdr->b_l1hdr.b_refcnt, arc_onloan_tag);
	atomic_add_64(&arc_loaned_bytes, -hdr->b_size);
}
void arc_return_buf ( arc_buf_t * buf , void * tag ) { arc_buf_hdr_t * hdr = buf -> b_hdr ; ASSERT ( buf -> b_data != NULL ) ; ASSERT ( HDR_HAS_L1HDR ( hdr ) ) ; ( void ) refcount_add ( & hdr -> b_l1hdr . b_refcnt , tag ) ; ( void ) refcount_remove ( & hdr -> b_l1hdr . b_refcnt , arc_onloan_tag ) ; atomic_add_64 ( & arc_loaned_bytes , - hdr -> b_size ) ; }
Return a loaned arc buffer to the arc.
Return a loaned arc buffer to the arc .