Lines Matching refs:nhdr
1574 arc_buf_hdr_t *nhdr; in arc_hdr_realloc() local
1580 nhdr = kmem_cache_alloc(new, KM_PUSHPAGE); in arc_hdr_realloc()
1585 bcopy(hdr, nhdr, HDR_L2ONLY_SIZE); in arc_hdr_realloc()
1588 nhdr->b_flags |= ARC_FLAG_HAS_L1HDR; in arc_hdr_realloc()
1594 nhdr->b_l1hdr.b_state = arc_l2c_only; in arc_hdr_realloc()
1597 ASSERT3P(nhdr->b_l1hdr.b_tmp_cdata, ==, NULL); in arc_hdr_realloc()
1627 nhdr->b_flags &= ~ARC_FLAG_HAS_L1HDR; in arc_hdr_realloc()
1633 (void) buf_hash_insert(nhdr, NULL); in arc_hdr_realloc()
1645 list_insert_after(&dev->l2ad_buflist, hdr, nhdr); in arc_hdr_realloc()
1662 nhdr->b_l2hdr.b_asize, nhdr); in arc_hdr_realloc()
1668 return (nhdr); in arc_hdr_realloc()
4832 arc_buf_hdr_t *nhdr; in arc_release() local
4878 nhdr = kmem_cache_alloc(hdr_full_cache, KM_PUSHPAGE); in arc_release()
4879 nhdr->b_size = blksz; in arc_release()
4880 nhdr->b_spa = spa; in arc_release()
4882 nhdr->b_flags = flags & ARC_FLAG_L2_WRITING; in arc_release()
4883 nhdr->b_flags |= arc_bufc_to_flags(type); in arc_release()
4884 nhdr->b_flags |= ARC_FLAG_HAS_L1HDR; in arc_release()
4886 nhdr->b_l1hdr.b_buf = buf; in arc_release()
4887 nhdr->b_l1hdr.b_datacnt = 1; in arc_release()
4888 nhdr->b_l1hdr.b_state = arc_anon; in arc_release()
4889 nhdr->b_l1hdr.b_arc_access = 0; in arc_release()
4890 nhdr->b_l1hdr.b_tmp_cdata = NULL; in arc_release()
4891 nhdr->b_freeze_cksum = NULL; in arc_release()
4893 (void) refcount_add(&nhdr->b_l1hdr.b_refcnt, tag); in arc_release()
4894 buf->b_hdr = nhdr; in arc_release()