Home | History | Annotate | Download | only in zfs

Lines Matching defs:zl

427 zio_walk_parents(zio_t *cio, zio_link_t **zl)
431 *zl = (*zl == NULL) ? list_head(pl) : list_next(pl, *zl);
432 if (*zl == NULL)
435 ASSERT((*zl)->zl_child == cio);
436 return ((*zl)->zl_parent);
440 zio_walk_children(zio_t *pio, zio_link_t **zl)
444 *zl = (*zl == NULL) ? list_head(cl) : list_next(cl, *zl);
445 if (*zl == NULL)
448 ASSERT((*zl)->zl_parent == pio);
449 return ((*zl)->zl_child);
455 zio_link_t *zl = NULL;
456 zio_t *pio = zio_walk_parents(cio, &zl);
458 VERIFY3P(zio_walk_parents(cio, &zl), ==, NULL);
465 zio_link_t *zl = kmem_cache_alloc(zio_link_cache, KM_SLEEP);
475 zl->zl_parent = pio;
476 zl->zl_child = cio;
486 list_insert_head(&pio->io_child_list, zl);
487 list_insert_head(&cio->io_parent_list, zl);
497 zio_remove_child(zio_t *pio, zio_t *cio, zio_link_t *zl)
499 ASSERT(zl->zl_parent == pio);
500 ASSERT(zl->zl_child == cio);
505 list_remove(&pio->io_child_list, zl);
506 list_remove(&cio->io_parent_list, zl);
514 kmem_cache_free(zio_link_cache, zl);
1790 zio_link_t *zl = NULL;
1791 for (cio = zio_walk_children(pio, &zl); cio != NULL; cio = cio_next) {
1792 cio_next = zio_walk_children(pio, &zl);
2568 zio_link_t *zl = NULL;
2569 while ((pio = zio_walk_parents(zio, &zl)) != NULL)
2590 zio_link_t *zl = NULL;
2591 while (zio_walk_parents(zio, &zl) != NULL)
3467 zio_link_t *zl = NULL;
3504 pio = zio_walk_parents(zio, &zl);
3515 pio_next = zio_walk_parents(zio, &zl);
3605 zio_link_t *zl = NULL;
3810 zl = NULL;
3811 for (pio = zio_walk_parents(zio, &zl); pio != NULL;
3813 zio_link_t *remove_zl = zl;
3814 pio_next = zio_walk_parents(zio, &zl);
3884 zl = NULL;
3885 for (pio = zio_walk_parents(zio, &zl); pio != NULL; pio = pio_next) {
3886 zio_link_t *remove_zl = zl;
3887 pio_next = zio_walk_parents(zio, &zl);