Lines Matching defs:nhdr
3306 arc_buf_hdr_t *nhdr;
3312 nhdr = kmem_cache_alloc(new, KM_PUSHPAGE);
3317 bcopy(hdr, nhdr, HDR_L2ONLY_SIZE);
3320 arc_hdr_set_flags(nhdr, ARC_FLAG_HAS_L1HDR);
3326 nhdr->b_l1hdr.b_state = arc_l2c_only;
3329 ASSERT3P(nhdr->b_l1hdr.b_pabd, ==, NULL);
3360 arc_hdr_clear_flags(nhdr, ARC_FLAG_HAS_L1HDR);
3366 (void) buf_hash_insert(nhdr, NULL);
3378 list_insert_after(&dev->l2ad_buflist, hdr, nhdr);
3392 (void) refcount_add_many(&dev->l2ad_alloc, arc_hdr_size(nhdr), nhdr);
3397 return (nhdr);
5972 arc_buf_hdr_t *nhdr;
6060 nhdr = arc_hdr_alloc(spa, psize, lsize, compress, type);
6061 ASSERT3P(nhdr->b_l1hdr.b_buf, ==, NULL);
6062 ASSERT0(nhdr->b_l1hdr.b_bufcnt);
6063 ASSERT0(refcount_count(&nhdr->b_l1hdr.b_refcnt));
6064 VERIFY3U(nhdr->b_type, ==, type);
6065 ASSERT(!HDR_SHARED_DATA(nhdr));
6067 nhdr->b_l1hdr.b_buf = buf;
6068 nhdr->b_l1hdr.b_bufcnt = 1;
6069 (void) refcount_add(&nhdr->b_l1hdr.b_refcnt, tag);
6070 buf->b_hdr = nhdr;