Lines Matching refs:nhdr
1578 arc_buf_hdr_t *nhdr; in arc_hdr_realloc() local
1584 nhdr = kmem_cache_alloc(new, KM_PUSHPAGE); in arc_hdr_realloc()
1589 bcopy(hdr, nhdr, HDR_L2ONLY_SIZE); in arc_hdr_realloc()
1592 nhdr->b_flags |= ARC_FLAG_HAS_L1HDR; in arc_hdr_realloc()
1598 nhdr->b_l1hdr.b_state = arc_l2c_only; in arc_hdr_realloc()
1601 ASSERT3P(nhdr->b_l1hdr.b_tmp_cdata, ==, NULL); in arc_hdr_realloc()
1631 nhdr->b_flags &= ~ARC_FLAG_HAS_L1HDR; in arc_hdr_realloc()
1637 (void) buf_hash_insert(nhdr, NULL); in arc_hdr_realloc()
1649 list_insert_after(&dev->l2ad_buflist, hdr, nhdr); in arc_hdr_realloc()
1666 nhdr->b_l2hdr.b_asize, nhdr); in arc_hdr_realloc()
1672 return (nhdr); in arc_hdr_realloc()
4892 arc_buf_hdr_t *nhdr; in arc_release() local
4938 nhdr = kmem_cache_alloc(hdr_full_cache, KM_PUSHPAGE); in arc_release()
4939 nhdr->b_size = blksz; in arc_release()
4940 nhdr->b_spa = spa; in arc_release()
4942 nhdr->b_flags = flags & ARC_FLAG_L2_WRITING; in arc_release()
4943 nhdr->b_flags |= arc_bufc_to_flags(type); in arc_release()
4944 nhdr->b_flags |= ARC_FLAG_HAS_L1HDR; in arc_release()
4946 nhdr->b_l1hdr.b_buf = buf; in arc_release()
4947 nhdr->b_l1hdr.b_datacnt = 1; in arc_release()
4948 nhdr->b_l1hdr.b_state = arc_anon; in arc_release()
4949 nhdr->b_l1hdr.b_arc_access = 0; in arc_release()
4950 nhdr->b_l1hdr.b_tmp_cdata = NULL; in arc_release()
4951 nhdr->b_freeze_cksum = NULL; in arc_release()
4953 (void) refcount_add(&nhdr->b_l1hdr.b_refcnt, tag); in arc_release()
4954 buf->b_hdr = nhdr; in arc_release()