Lines Matching refs:adddev
8015 l2arc_dev_t *adddev;
8024 adddev = kmem_zalloc(sizeof (l2arc_dev_t), KM_SLEEP);
8025 adddev->l2ad_spa = spa;
8026 adddev->l2ad_vdev = vd;
8027 adddev->l2ad_start = VDEV_LABEL_START_SIZE;
8028 adddev->l2ad_end = VDEV_LABEL_START_SIZE + vdev_get_min_asize(vd);
8029 adddev->l2ad_hand = adddev->l2ad_start;
8030 adddev->l2ad_first = B_TRUE;
8031 adddev->l2ad_writing = B_FALSE;
8033 mutex_init(&adddev->l2ad_mtx, NULL, MUTEX_DEFAULT, NULL);
8038 list_create(&adddev->l2ad_buflist, sizeof (arc_buf_hdr_t),
8041 vdev_space_update(vd, 0, 0, adddev->l2ad_end - adddev->l2ad_hand);
8042 refcount_create(&adddev->l2ad_alloc);
8048 list_insert_head(l2arc_dev_list, adddev);