Lines Matching defs:nhdr
1263 arc_buf_hdr_t *nhdr;
1269 nhdr = kmem_cache_alloc(new, KM_PUSHPAGE);
1274 bcopy(hdr, nhdr, HDR_L2ONLY_SIZE);
1277 nhdr->b_flags |= ARC_FLAG_HAS_L1HDR;
1283 nhdr->b_l1hdr.b_state = arc_l2c_only;
1286 ASSERT3P(nhdr->b_l1hdr.b_tmp_cdata, ==, NULL);
1316 nhdr->b_flags &= ~ARC_FLAG_HAS_L1HDR;
1322 (void) buf_hash_insert(nhdr, NULL);
1334 list_insert_after(&dev->l2ad_buflist, hdr, nhdr);
1351 nhdr->b_l2hdr.b_asize, nhdr);
1357 return (nhdr);
4541 arc_buf_hdr_t *nhdr;
4587 nhdr = kmem_cache_alloc(hdr_full_cache, KM_PUSHPAGE);
4588 nhdr->b_size = blksz;
4589 nhdr->b_spa = spa;
4591 nhdr->b_flags = flags & ARC_FLAG_L2_WRITING;
4592 nhdr->b_flags |= arc_bufc_to_flags(type);
4593 nhdr->b_flags |= ARC_FLAG_HAS_L1HDR;
4595 nhdr->b_l1hdr.b_buf = buf;
4596 nhdr->b_l1hdr.b_datacnt = 1;
4597 nhdr->b_l1hdr.b_state = arc_anon;
4598 nhdr->b_l1hdr.b_arc_access = 0;
4599 nhdr->b_l1hdr.b_tmp_cdata = NULL;
4600 nhdr->b_freeze_cksum = NULL;
4602 (void) refcount_add(&nhdr->b_l1hdr.b_refcnt, tag);
4603 buf->b_hdr = nhdr;