Lines Matching refs:sds
1112 scan_ds_t *sds; in scan_ds_queue_clear() local
1113 while ((sds = avl_destroy_nodes(&scn->scn_queue, &cookie)) != NULL) { in scan_ds_queue_clear()
1114 kmem_free(sds, sizeof (*sds)); in scan_ds_queue_clear()
1121 scan_ds_t srch, *sds; in scan_ds_queue_contains() local
1124 sds = avl_find(&scn->scn_queue, &srch, NULL); in scan_ds_queue_contains()
1125 if (sds != NULL && txg != NULL) in scan_ds_queue_contains()
1126 *txg = sds->sds_txg; in scan_ds_queue_contains()
1127 return (sds != NULL); in scan_ds_queue_contains()
1133 scan_ds_t *sds; in scan_ds_queue_insert() local
1136 sds = kmem_zalloc(sizeof (*sds), KM_SLEEP); in scan_ds_queue_insert()
1137 sds->sds_dsobj = dsobj; in scan_ds_queue_insert()
1138 sds->sds_txg = txg; in scan_ds_queue_insert()
1140 VERIFY3P(avl_find(&scn->scn_queue, sds, &where), ==, NULL); in scan_ds_queue_insert()
1141 avl_insert(&scn->scn_queue, sds, where); in scan_ds_queue_insert()
1147 scan_ds_t srch, *sds; in scan_ds_queue_remove() local
1151 sds = avl_find(&scn->scn_queue, &srch, NULL); in scan_ds_queue_remove()
1152 VERIFY(sds != NULL); in scan_ds_queue_remove()
1153 avl_remove(&scn->scn_queue, sds); in scan_ds_queue_remove()
1154 kmem_free(sds, sizeof (*sds)); in scan_ds_queue_remove()
1172 for (scan_ds_t *sds = avl_first(&scn->scn_queue); in scan_ds_queue_sync() local
1173 sds != NULL; sds = AVL_NEXT(&scn->scn_queue, sds)) { in scan_ds_queue_sync()
1175 scn->scn_phys.scn_queue_obj, sds->sds_dsobj, in scan_ds_queue_sync()
1176 sds->sds_txg, tx)); in scan_ds_queue_sync()
2573 scan_ds_t *sds; in dsl_scan_visit() local
2628 while ((sds = avl_first(&scn->scn_queue)) != NULL) { in dsl_scan_visit()
2630 uint64_t dsobj = sds->sds_dsobj; in dsl_scan_visit()
2631 uint64_t txg = sds->sds_txg; in dsl_scan_visit()
2635 sds = NULL; /* must not be touched after removal */ in dsl_scan_visit()