Lines Matching defs:ze
239 zvol_extent_t *ze;
255 ze = list_tail(&ma->ma_zv->zv_extents);
256 if (ze &&
257 DVA_GET_VDEV(BP_IDENTITY(bp)) == DVA_GET_VDEV(&ze->ze_dva) &&
259 DVA_GET_OFFSET(&ze->ze_dva) + ze->ze_nblks * bs) {
260 ze->ze_nblks++;
267 ze = kmem_zalloc(sizeof (zvol_extent_t), KM_SLEEP);
268 ze->ze_dva = bp->blk_dva[0]; /* structure assignment */
269 ze->ze_nblks = 1;
270 list_insert_tail(&ma->ma_zv->zv_extents, ze);
277 zvol_extent_t *ze;
279 while (ze = list_head(&zv->zv_extents)) {
280 list_remove(&zv->zv_extents, ze);
281 kmem_free(ze, sizeof (zvol_extent_t));
1092 zvol_extent_t *ze;
1103 ze = list_head(&zv->zv_extents);
1104 while (offset >= ze->ze_nblks * zv->zv_volblocksize) {
1105 offset -= ze->ze_nblks * zv->zv_volblocksize;
1106 ze = list_next(&zv->zv_extents, ze);
1112 vd = vdev_lookup_top(spa, DVA_GET_VDEV(&ze->ze_dva));
1113 offset += DVA_GET_OFFSET(&ze->ze_dva);