Lines Matching refs:l2dhdr

7699 	l2arc_dev_hdr_phys_t	*l2dhdr;  in l2arc_write_done()  local
7708 l2dhdr = dev->l2ad_dev_hdr; in l2arc_write_done()
7840 bzero(l2dhdr, dev->l2ad_dev_hdr_asize); in l2arc_write_done()
7842 bzero(&l2dhdr->dh_start_lbps[i], in l2arc_write_done()
7847 bcopy(lb_ptr_buf->lb_ptr, &l2dhdr->dh_start_lbps[i], in l2arc_write_done()
8509 l2arc_dev_hdr_phys_t *l2dhdr = dev->l2ad_dev_hdr; in l2arc_write_buffers() local
8728 if (dev->l2ad_evict != l2dhdr->dh_evict) in l2arc_write_buffers()
8956 l2arc_dev_hdr_phys_t *l2dhdr; in l2arc_rebuild_vdev() local
8963 l2dhdr = dev->l2ad_dev_hdr; in l2arc_rebuild_vdev()
9018 bzero(l2dhdr, l2dhdr_asize); in l2arc_rebuild_vdev()
9206 l2arc_dev_hdr_phys_t *l2dhdr = dev->l2ad_dev_hdr; in l2arc_rebuild() local
9230 dev->l2ad_evict = MAX(l2dhdr->dh_evict, dev->l2ad_start); in l2arc_rebuild()
9231 dev->l2ad_hand = MAX(l2dhdr->dh_start_lbps[0].lbp_daddr + in l2arc_rebuild()
9232 L2BLK_GET_PSIZE((&l2dhdr->dh_start_lbps[0])->lbp_prop), in l2arc_rebuild()
9234 dev->l2ad_first = !!(l2dhdr->dh_flags & L2ARC_DEV_HDR_EVICT_FIRST); in l2arc_rebuild()
9244 bcopy(l2dhdr->dh_start_lbps, lbps, sizeof (lbps)); in l2arc_rebuild()
9389 bzero(l2dhdr, dev->l2ad_dev_hdr_asize); in l2arc_rebuild()
9420 l2arc_dev_hdr_phys_t *l2dhdr = dev->l2ad_dev_hdr; in l2arc_dev_hdr_read() local
9426 abd = abd_get_from_buf(l2dhdr, l2dhdr_asize); in l2arc_dev_hdr_read()
9444 if (l2dhdr->dh_magic == BSWAP_64(L2ARC_DEV_HDR_MAGIC)) in l2arc_dev_hdr_read()
9445 byteswap_uint64_array(l2dhdr, sizeof (*l2dhdr)); in l2arc_dev_hdr_read()
9447 if (l2dhdr->dh_magic != L2ARC_DEV_HDR_MAGIC || in l2arc_dev_hdr_read()
9448 l2dhdr->dh_spa_guid != guid || in l2arc_dev_hdr_read()
9449 l2dhdr->dh_vdev_guid != dev->l2ad_vdev->vdev_guid || in l2arc_dev_hdr_read()
9450 l2dhdr->dh_version != L2ARC_PERSISTENT_VERSION || in l2arc_dev_hdr_read()
9451 l2dhdr->dh_log_entries != dev->l2ad_log_entries || in l2arc_dev_hdr_read()
9452 l2dhdr->dh_end != dev->l2ad_end || in l2arc_dev_hdr_read()
9454 l2dhdr->dh_evict)) { in l2arc_dev_hdr_read()
9772 l2arc_dev_hdr_phys_t *l2dhdr = dev->l2ad_dev_hdr; in l2arc_dev_hdr_update() local
9779 l2dhdr->dh_magic = L2ARC_DEV_HDR_MAGIC; in l2arc_dev_hdr_update()
9780 l2dhdr->dh_version = L2ARC_PERSISTENT_VERSION; in l2arc_dev_hdr_update()
9781 l2dhdr->dh_spa_guid = spa_guid(dev->l2ad_vdev->vdev_spa); in l2arc_dev_hdr_update()
9782 l2dhdr->dh_vdev_guid = dev->l2ad_vdev->vdev_guid; in l2arc_dev_hdr_update()
9783 l2dhdr->dh_log_entries = dev->l2ad_log_entries; in l2arc_dev_hdr_update()
9784 l2dhdr->dh_evict = dev->l2ad_evict; in l2arc_dev_hdr_update()
9785 l2dhdr->dh_start = dev->l2ad_start; in l2arc_dev_hdr_update()
9786 l2dhdr->dh_end = dev->l2ad_end; in l2arc_dev_hdr_update()
9787 l2dhdr->dh_lb_asize = zfs_refcount_count(&dev->l2ad_lb_asize); in l2arc_dev_hdr_update()
9788 l2dhdr->dh_lb_count = zfs_refcount_count(&dev->l2ad_lb_count); in l2arc_dev_hdr_update()
9789 l2dhdr->dh_flags = 0; in l2arc_dev_hdr_update()
9791 l2dhdr->dh_flags |= L2ARC_DEV_HDR_EVICT_FIRST; in l2arc_dev_hdr_update()
9793 abd = abd_get_from_buf(l2dhdr, l2dhdr_asize); in l2arc_dev_hdr_update()
9817 l2arc_dev_hdr_phys_t *l2dhdr = dev->l2ad_dev_hdr; in l2arc_log_blk_commit() local
9833 lb->lb_prev_lbp = l2dhdr->dh_start_lbps[1]; in l2arc_log_blk_commit()
9856 l2dhdr->dh_start_lbps[1] = l2dhdr->dh_start_lbps[0]; in l2arc_log_blk_commit()
9857 l2dhdr->dh_start_lbps[0].lbp_daddr = dev->l2ad_hand; in l2arc_log_blk_commit()
9858 l2dhdr->dh_start_lbps[0].lbp_payload_asize = in l2arc_log_blk_commit()
9860 l2dhdr->dh_start_lbps[0].lbp_payload_start = in l2arc_log_blk_commit()
9864 (&l2dhdr->dh_start_lbps[0])->lbp_prop, sizeof (*lb)); in l2arc_log_blk_commit()
9866 (&l2dhdr->dh_start_lbps[0])->lbp_prop, asize); in l2arc_log_blk_commit()
9868 (&l2dhdr->dh_start_lbps[0])->lbp_prop, in l2arc_log_blk_commit()
9874 (&l2dhdr->dh_start_lbps[0])->lbp_prop, in l2arc_log_blk_commit()
9880 (&l2dhdr->dh_start_lbps[0])->lbp_prop, in l2arc_log_blk_commit()
9886 &l2dhdr->dh_start_lbps[0].lbp_cksum); in l2arc_log_blk_commit()
9904 bcopy(&l2dhdr->dh_start_lbps[0], lb_ptr_buf->lb_ptr, in l2arc_log_blk_commit()