• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/contrib/openzfs/module/zfs/

Lines Matching defs:nhdr

3360 	arc_buf_hdr_t *nhdr;
3376 nhdr = kmem_cache_alloc(new, KM_PUSHPAGE);
3381 bcopy(hdr, nhdr, HDR_L2ONLY_SIZE);
3384 arc_hdr_set_flags(nhdr, ARC_FLAG_HAS_L1HDR);
3390 nhdr->b_l1hdr.b_state = arc_l2c_only;
3393 ASSERT3P(nhdr->b_l1hdr.b_pabd, ==, NULL);
3419 arc_hdr_clear_flags(nhdr, ARC_FLAG_HAS_L1HDR);
3425 (void) buf_hash_insert(nhdr, NULL);
3437 list_insert_after(&dev->l2ad_buflist, hdr, nhdr);
3453 arc_hdr_size(nhdr), nhdr);
3458 return (nhdr);
3469 arc_buf_hdr_t *nhdr;
3499 nhdr = kmem_cache_alloc(ncache, KM_PUSHPAGE);
3506 nhdr->b_dva = hdr->b_dva;
3507 nhdr->b_birth = hdr->b_birth;
3508 nhdr->b_type = hdr->b_type;
3509 nhdr->b_flags = hdr->b_flags;
3510 nhdr->b_psize = hdr->b_psize;
3511 nhdr->b_lsize = hdr->b_lsize;
3512 nhdr->b_spa = hdr->b_spa;
3513 nhdr->b_l1hdr.b_freeze_cksum = hdr->b_l1hdr.b_freeze_cksum;
3514 nhdr->b_l1hdr.b_bufcnt = hdr->b_l1hdr.b_bufcnt;
3515 nhdr->b_l1hdr.b_byteswap = hdr->b_l1hdr.b_byteswap;
3516 nhdr->b_l1hdr.b_state = hdr->b_l1hdr.b_state;
3517 nhdr->b_l1hdr.b_arc_access = hdr->b_l1hdr.b_arc_access;
3518 nhdr->b_l1hdr.b_mru_hits = hdr->b_l1hdr.b_mru_hits;
3519 nhdr->b_l1hdr.b_mru_ghost_hits = hdr->b_l1hdr.b_mru_ghost_hits;
3520 nhdr->b_l1hdr.b_mfu_hits = hdr->b_l1hdr.b_mfu_hits;
3521 nhdr->b_l1hdr.b_mfu_ghost_hits = hdr->b_l1hdr.b_mfu_ghost_hits;
3522 nhdr->b_l1hdr.b_l2_hits = hdr->b_l1hdr.b_l2_hits;
3523 nhdr->b_l1hdr.b_acb = hdr->b_l1hdr.b_acb;
3524 nhdr->b_l1hdr.b_pabd = hdr->b_l1hdr.b_pabd;
3531 (void) zfs_refcount_add(&nhdr->b_l1hdr.b_refcnt, FTAG);
3532 nhdr->b_l1hdr.b_buf = hdr->b_l1hdr.b_buf;
3533 for (buf = nhdr->b_l1hdr.b_buf; buf != NULL; buf = buf->b_next) {
3535 buf->b_hdr = nhdr;
3539 zfs_refcount_transfer(&nhdr->b_l1hdr.b_refcnt, &hdr->b_l1hdr.b_refcnt);
3540 (void) zfs_refcount_remove(&nhdr->b_l1hdr.b_refcnt, FTAG);
3544 arc_hdr_set_flags(nhdr, ARC_FLAG_PROTECTED);
3546 arc_hdr_clear_flags(nhdr, ARC_FLAG_PROTECTED);
3584 return (nhdr);
6625 arc_buf_hdr_t *nhdr;
6722 nhdr = arc_hdr_alloc(spa, psize, lsize, protected,
6724 ASSERT3P(nhdr->b_l1hdr.b_buf, ==, NULL);
6725 ASSERT0(nhdr->b_l1hdr.b_bufcnt);
6726 ASSERT0(zfs_refcount_count(&nhdr->b_l1hdr.b_refcnt));
6727 VERIFY3U(nhdr->b_type, ==, type);
6728 ASSERT(!HDR_SHARED_DATA(nhdr));
6730 nhdr->b_l1hdr.b_buf = buf;
6731 nhdr->b_l1hdr.b_bufcnt = 1;
6733 nhdr->b_crypt_hdr.b_ebufcnt = 1;
6734 nhdr->b_l1hdr.b_mru_hits = 0;
6735 nhdr->b_l1hdr.b_mru_ghost_hits = 0;
6736 nhdr->b_l1hdr.b_mfu_hits = 0;
6737 nhdr->b_l1hdr.b_mfu_ghost_hits = 0;
6738 nhdr->b_l1hdr.b_l2_hits = 0;
6739 (void) zfs_refcount_add(&nhdr->b_l1hdr.b_refcnt, tag);
6740 buf->b_hdr = nhdr;