Lines Matching refs:sds

1484 	scan_ds_t *sds;  in scan_ds_queue_clear()  local
1485 while ((sds = avl_destroy_nodes(&scn->scn_queue, &cookie)) != NULL) { in scan_ds_queue_clear()
1486 kmem_free(sds, sizeof (*sds)); in scan_ds_queue_clear()
1493 scan_ds_t srch, *sds; in scan_ds_queue_contains() local
1496 sds = avl_find(&scn->scn_queue, &srch, NULL); in scan_ds_queue_contains()
1497 if (sds != NULL && txg != NULL) in scan_ds_queue_contains()
1498 *txg = sds->sds_txg; in scan_ds_queue_contains()
1499 return (sds != NULL); in scan_ds_queue_contains()
1505 scan_ds_t *sds; in scan_ds_queue_insert() local
1508 sds = kmem_zalloc(sizeof (*sds), KM_SLEEP); in scan_ds_queue_insert()
1509 sds->sds_dsobj = dsobj; in scan_ds_queue_insert()
1510 sds->sds_txg = txg; in scan_ds_queue_insert()
1512 VERIFY3P(avl_find(&scn->scn_queue, sds, &where), ==, NULL); in scan_ds_queue_insert()
1513 avl_insert(&scn->scn_queue, sds, where); in scan_ds_queue_insert()
1519 scan_ds_t srch, *sds; in scan_ds_queue_remove() local
1523 sds = avl_find(&scn->scn_queue, &srch, NULL); in scan_ds_queue_remove()
1524 VERIFY(sds != NULL); in scan_ds_queue_remove()
1525 avl_remove(&scn->scn_queue, sds); in scan_ds_queue_remove()
1526 kmem_free(sds, sizeof (*sds)); in scan_ds_queue_remove()
1544 for (scan_ds_t *sds = avl_first(&scn->scn_queue); in scan_ds_queue_sync() local
1545 sds != NULL; sds = AVL_NEXT(&scn->scn_queue, sds)) { in scan_ds_queue_sync()
1547 scn->scn_phys.scn_queue_obj, sds->sds_dsobj, in scan_ds_queue_sync()
1548 sds->sds_txg, tx)); in scan_ds_queue_sync()
3110 scan_ds_t *sds; in dsl_scan_visit() local
3164 while ((sds = avl_first(&scn->scn_queue)) != NULL) { in dsl_scan_visit()
3166 uint64_t dsobj = sds->sds_dsobj; in dsl_scan_visit()
3167 uint64_t txg = sds->sds_txg; in dsl_scan_visit()
3171 sds = NULL; in dsl_scan_visit()