Lines Matching refs:sds
1148 scan_ds_t *sds;
1149 while ((sds = avl_destroy_nodes(&scn->scn_queue, &cookie)) != NULL) {
1150 kmem_free(sds, sizeof (*sds));
1157 scan_ds_t srch, *sds;
1160 sds = avl_find(&scn->scn_queue, &srch, NULL);
1161 if (sds != NULL && txg != NULL)
1162 *txg = sds->sds_txg;
1163 return (sds != NULL);
1169 scan_ds_t *sds;
1172 sds = kmem_zalloc(sizeof (*sds), KM_SLEEP);
1173 sds->sds_dsobj = dsobj;
1174 sds->sds_txg = txg;
1176 VERIFY3P(avl_find(&scn->scn_queue, sds, &where), ==, NULL);
1177 avl_insert(&scn->scn_queue, sds, where);
1183 scan_ds_t srch, *sds;
1187 sds = avl_find(&scn->scn_queue, &srch, NULL);
1188 VERIFY(sds != NULL);
1189 avl_remove(&scn->scn_queue, sds);
1190 kmem_free(sds, sizeof (*sds));
1208 for (scan_ds_t *sds = avl_first(&scn->scn_queue);
1209 sds != NULL; sds = AVL_NEXT(&scn->scn_queue, sds)) {
1211 scn->scn_phys.scn_queue_obj, sds->sds_dsobj,
1212 sds->sds_txg, tx));
2674 scan_ds_t *sds;
2729 while ((sds = avl_first(&scn->scn_queue)) != NULL) {
2731 uint64_t dsobj = sds->sds_dsobj;
2732 uint64_t txg = sds->sds_txg;
2736 sds = NULL;