Lines Matching refs:zl

342 zio_walk_parents(zio_t *cio, zio_link_t **zl)
346 *zl = (*zl == NULL) ? list_head(pl) : list_next(pl, *zl);
347 if (*zl == NULL)
350 ASSERT((*zl)->zl_child == cio);
351 return ((*zl)->zl_parent);
355 zio_walk_children(zio_t *pio, zio_link_t **zl)
359 *zl = (*zl == NULL) ? list_head(cl) : list_next(cl, *zl);
360 if (*zl == NULL)
363 ASSERT((*zl)->zl_parent == pio);
364 return ((*zl)->zl_child);
370 zio_link_t *zl = NULL;
371 zio_t *pio = zio_walk_parents(cio, &zl);
373 VERIFY3P(zio_walk_parents(cio, &zl), ==, NULL);
380 zio_link_t *zl = kmem_cache_alloc(zio_link_cache, KM_SLEEP);
390 zl->zl_parent = pio;
391 zl->zl_child = cio;
401 list_insert_head(&pio->io_child_list, zl);
402 list_insert_head(&cio->io_parent_list, zl);
412 zio_remove_child(zio_t *pio, zio_t *cio, zio_link_t *zl)
414 ASSERT(zl->zl_parent == pio);
415 ASSERT(zl->zl_child == cio);
420 list_remove(&pio->io_child_list, zl);
421 list_remove(&cio->io_parent_list, zl);
429 kmem_cache_free(zio_link_cache, zl);
1669 zio_link_t *zl = NULL;
1670 for (cio = zio_walk_children(pio, &zl); cio != NULL; cio = cio_next) {
1671 cio_next = zio_walk_children(pio, &zl);
2467 zio_link_t *zl = NULL;
2468 while ((pio = zio_walk_parents(zio, &zl)) != NULL)
2489 zio_link_t *zl = NULL;
2490 while (zio_walk_parents(zio, &zl) != NULL)
3328 zio_link_t *zl = NULL;
3365 pio = zio_walk_parents(zio, &zl);
3376 pio_next = zio_walk_parents(zio, &zl);
3466 zio_link_t *zl = NULL;
3671 zl = NULL;
3672 for (pio = zio_walk_parents(zio, &zl); pio != NULL;
3674 zio_link_t *remove_zl = zl;
3675 pio_next = zio_walk_parents(zio, &zl);
3739 zl = NULL;
3740 for (pio = zio_walk_parents(zio, &zl); pio != NULL; pio = pio_next) {
3741 zio_link_t *remove_zl = zl;
3742 pio_next = zio_walk_parents(zio, &zl);