Lines Matching defs:tag

1491 static void arc_free_data_impl(arc_buf_hdr_t *hdr, uint64_t size, void *tag);
2470 add_reference(arc_buf_hdr_t *hdr, void *tag)
2481 if ((refcount_add(&hdr->b_l1hdr.b_refcnt, tag) == 1) &&
2500 remove_reference(arc_buf_hdr_t *hdr, kmutex_t *hash_lock, void *tag)
2513 if (((cnt = refcount_remove(&hdr->b_l1hdr.b_refcnt, tag)) == 0) &&
2827 arc_buf_alloc_impl(arc_buf_hdr_t *hdr, void *tag, boolean_t compressed,
2845 add_reference(hdr, tag);
2948 arc_return_buf(arc_buf_t *buf, void *tag)
2954 (void) refcount_add(&hdr->b_l1hdr.b_refcnt, tag);
2960 /* Detach an arc_buf from a dbuf (tag) */
2962 arc_loan_inuse_buf(arc_buf_t *buf, void *tag)
2969 (void) refcount_remove(&hdr->b_l1hdr.b_refcnt, tag);
3384 * Since we're using the pointer address as the tag when
3405 arc_alloc_buf(spa_t *spa, void *tag, arc_buf_contents_t type, int32_t size)
3412 VERIFY0(arc_buf_alloc_impl(hdr, tag, B_FALSE, B_FALSE, &buf));
3423 arc_alloc_compressed_buf(spa_t *spa, void *tag, uint64_t psize, uint64_t lsize,
3436 VERIFY0(arc_buf_alloc_impl(hdr, tag, B_TRUE, B_FALSE, &buf));
3545 arc_buf_destroy(arc_buf_t *buf, void* tag)
3553 VERIFY0(remove_reference(hdr, NULL, tag));
3565 (void) remove_reference(hdr, hash_lock, tag);
4853 arc_get_data_abd(arc_buf_hdr_t *hdr, uint64_t size, void *tag, boolean_t do_adapt)
4857 arc_get_data_impl(hdr, size, tag, do_adapt);
4867 arc_get_data_buf(arc_buf_hdr_t *hdr, uint64_t size, void *tag)
4871 arc_get_data_impl(hdr, size, tag, B_TRUE);
4887 arc_get_data_impl(arc_buf_hdr_t *hdr, uint64_t size, void *tag, boolean_t do_adapt)
4945 (void) refcount_add_many(&state->arcs_size, size, tag);
4959 size, tag);
4976 arc_free_data_abd(arc_buf_hdr_t *hdr, abd_t *abd, uint64_t size, void *tag)
4978 arc_free_data_impl(hdr, size, tag);
4983 arc_free_data_buf(arc_buf_hdr_t *hdr, void *buf, uint64_t size, void *tag)
4987 arc_free_data_impl(hdr, size, tag);
5000 arc_free_data_impl(arc_buf_hdr_t *hdr, uint64_t size, void *tag)
5011 size, tag);
5013 (void) refcount_remove_many(&state->arcs_size, size, tag);
5893 arc_release(arc_buf_t *buf, void *tag)
5981 (void) remove_reference(hdr, hash_lock, tag);
6069 (void) refcount_add(&nhdr->b_l1hdr.b_refcnt, tag);