Deleted Added
full compact
dsl_dataset.c (286708) dsl_dataset.c (288204)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 274 unchanged lines hidden (view full) ---

283 bplist_destroy(&ds->ds_pending_deadlist);
284 if (ds->ds_deadlist.dl_os != NULL)
285 dsl_deadlist_close(&ds->ds_deadlist);
286 if (ds->ds_dir)
287 dsl_dir_async_rele(ds->ds_dir, ds);
288
289 ASSERT(!list_link_active(&ds->ds_synced_link));
290
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 274 unchanged lines hidden (view full) ---

283 bplist_destroy(&ds->ds_pending_deadlist);
284 if (ds->ds_deadlist.dl_os != NULL)
285 dsl_deadlist_close(&ds->ds_deadlist);
286 if (ds->ds_dir)
287 dsl_dir_async_rele(ds->ds_dir, ds);
288
289 ASSERT(!list_link_active(&ds->ds_synced_link));
290
291 list_destroy(&ds->ds_prop_cbs);
291 if (mutex_owned(&ds->ds_lock))
292 mutex_exit(&ds->ds_lock);
293 mutex_destroy(&ds->ds_lock);
294 if (mutex_owned(&ds->ds_opening_lock))
295 mutex_exit(&ds->ds_opening_lock);
296 mutex_destroy(&ds->ds_opening_lock);
297 mutex_destroy(&ds->ds_sendstream_lock);
298 refcount_destroy(&ds->ds_longholds);

--- 130 unchanged lines hidden (view full) ---

429
430 bplist_create(&ds->ds_pending_deadlist);
431 dsl_deadlist_open(&ds->ds_deadlist,
432 mos, dsl_dataset_phys(ds)->ds_deadlist_obj);
433
434 list_create(&ds->ds_sendstreams, sizeof (dmu_sendarg_t),
435 offsetof(dmu_sendarg_t, dsa_link));
436
292 if (mutex_owned(&ds->ds_lock))
293 mutex_exit(&ds->ds_lock);
294 mutex_destroy(&ds->ds_lock);
295 if (mutex_owned(&ds->ds_opening_lock))
296 mutex_exit(&ds->ds_opening_lock);
297 mutex_destroy(&ds->ds_opening_lock);
298 mutex_destroy(&ds->ds_sendstream_lock);
299 refcount_destroy(&ds->ds_longholds);

--- 130 unchanged lines hidden (view full) ---

430
431 bplist_create(&ds->ds_pending_deadlist);
432 dsl_deadlist_open(&ds->ds_deadlist,
433 mos, dsl_dataset_phys(ds)->ds_deadlist_obj);
434
435 list_create(&ds->ds_sendstreams, sizeof (dmu_sendarg_t),
436 offsetof(dmu_sendarg_t, dsa_link));
437
438 list_create(&ds->ds_prop_cbs, sizeof (dsl_prop_cb_record_t),
439 offsetof(dsl_prop_cb_record_t, cbr_ds_node));
440
437 if (doi.doi_type == DMU_OTN_ZAP_METADATA) {
438 for (spa_feature_t f = 0; f < SPA_FEATURES; f++) {
439 if (!(spa_feature_table[f].fi_flags &
440 ZFEATURE_FLAG_PER_DATASET))
441 continue;
442 err = zap_contains(mos, dsobj,
443 spa_feature_table[f].fi_guid);
444 if (err == 0) {

--- 3021 unchanged lines hidden ---
441 if (doi.doi_type == DMU_OTN_ZAP_METADATA) {
442 for (spa_feature_t f = 0; f < SPA_FEATURES; f++) {
443 if (!(spa_feature_table[f].fi_flags &
444 ZFEATURE_FLAG_PER_DATASET))
445 continue;
446 err = zap_contains(mos, dsobj,
447 spa_feature_table[f].fi_guid);
448 if (err == 0) {

--- 3021 unchanged lines hidden ---