Deleted Added
full compact
bptree.c (236884) bptree.c (240133)
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

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

184 ASSERT(!free || i == ba.ba_phys->bt_begin);
185
186 err = dmu_read(os, obj, i * sizeof (bte), sizeof (bte),
187 &bte, DMU_READ_NO_PREFETCH);
188 if (err != 0)
189 break;
190
191 err = traverse_dataset_destroyed(os->os_spa, &bte.be_bp,
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

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

184 ASSERT(!free || i == ba.ba_phys->bt_begin);
185
186 err = dmu_read(os, obj, i * sizeof (bte), sizeof (bte),
187 &bte, DMU_READ_NO_PREFETCH);
188 if (err != 0)
189 break;
190
191 err = traverse_dataset_destroyed(os->os_spa, &bte.be_bp,
192 bte.be_birth_txg, &bte.be_zb, TRAVERSE_POST,
192 bte.be_birth_txg, &bte.be_zb,
193 TRAVERSE_PREFETCH_METADATA | TRAVERSE_POST,
193 bptree_visit_cb, &ba);
194 if (free) {
195 ASSERT(err == 0 || err == ERESTART);
196 if (err != 0) {
197 /* save bookmark for future resume */
198 ASSERT3U(bte.be_zb.zb_objset, ==,
199 ZB_DESTROYED_OBJSET);
200 ASSERT3U(bte.be_zb.zb_level, ==, 0);

--- 24 unchanged lines hidden ---
194 bptree_visit_cb, &ba);
195 if (free) {
196 ASSERT(err == 0 || err == ERESTART);
197 if (err != 0) {
198 /* save bookmark for future resume */
199 ASSERT3U(bte.be_zb.zb_objset, ==,
200 ZB_DESTROYED_OBJSET);
201 ASSERT3U(bte.be_zb.zb_level, ==, 0);

--- 24 unchanged lines hidden ---