Lines Matching refs:adddev
7020 l2arc_dev_t *adddev;
7027 adddev = kmem_zalloc(sizeof (l2arc_dev_t), KM_SLEEP);
7028 adddev->l2ad_spa = spa;
7029 adddev->l2ad_vdev = vd;
7030 adddev->l2ad_start = VDEV_LABEL_START_SIZE;
7031 adddev->l2ad_end = VDEV_LABEL_START_SIZE + vdev_get_min_asize(vd);
7032 adddev->l2ad_hand = adddev->l2ad_start;
7033 adddev->l2ad_first = B_TRUE;
7034 adddev->l2ad_writing = B_FALSE;
7036 mutex_init(&adddev->l2ad_mtx, NULL, MUTEX_DEFAULT, NULL);
7041 list_create(&adddev->l2ad_buflist, sizeof (arc_buf_hdr_t),
7044 vdev_space_update(vd, 0, 0, adddev->l2ad_end - adddev->l2ad_hand);
7045 refcount_create(&adddev->l2ad_alloc);
7051 list_insert_head(l2arc_dev_list, adddev);