Deleted Added
full compact
dsl_pool.c (240415) dsl_pool.c (243524)
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

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

435 }
436 err = zio_wait(zio);
437
438 /*
439 * Now that the datasets have been completely synced, we can
440 * clean up our in-memory structures accumulated while syncing:
441 *
442 * - move dead blocks from the pending deadlist to the on-disk deadlist
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

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

435 }
436 err = zio_wait(zio);
437
438 /*
439 * Now that the datasets have been completely synced, we can
440 * clean up our in-memory structures accumulated while syncing:
441 *
442 * - move dead blocks from the pending deadlist to the on-disk deadlist
443 * - clean up zil records
444 * - release hold from dsl_dataset_dirty()
445 */
446 while (ds = list_remove_head(&synced_datasets)) {
447 objset_t *os = ds->ds_objset;
448 bplist_iterate(&ds->ds_pending_deadlist,
449 deadlist_enqueue_cb, &ds->ds_deadlist, tx);
450 ASSERT(!dmu_objset_is_dirty(os, txg));
451 dmu_buf_rele(ds->ds_dbuf, ds);

--- 504 unchanged lines hidden ---
443 * - release hold from dsl_dataset_dirty()
444 */
445 while (ds = list_remove_head(&synced_datasets)) {
446 objset_t *os = ds->ds_objset;
447 bplist_iterate(&ds->ds_pending_deadlist,
448 deadlist_enqueue_cb, &ds->ds_deadlist, tx);
449 ASSERT(!dmu_objset_is_dirty(os, txg));
450 dmu_buf_rele(ds->ds_dbuf, ds);

--- 504 unchanged lines hidden ---