View | Details | Raw Unified | Return to bug 202607 | Differences between
and this patch

Collapse All | Expand All

(-)dnode_sync.c (-1 / +15 lines)
Lines 502-508 dnode_sync_free(dnode_t *dn, dmu_tx_t *tx) Link Here
502
502
503
	dnode_undirty_dbufs(&dn->dn_dirty_records[txgoff]);
503
	dnode_undirty_dbufs(&dn->dn_dirty_records[txgoff]);
504
	dnode_evict_dbufs(dn);
504
	dnode_evict_dbufs(dn);
505
	ASSERT(avl_is_empty(&dn->dn_dbufs));
505
506
#ifdef DEBUG
507
	{
508
		dmu_buf_impl_t *db, *db_next;
509
510
		mutex_enter(&dn->dn_dbufs_mtx);
511
		for (db = avl_first(&dn->dn_dbufs); db != NULL; db = db_next) {
512
			db_next = AVL_NEXT(&dn->dn_dbufs, db);
513
			mutex_enter(&db->db_mtx);
514
			ASSERT3U(db->db_state, ==, DB_EVICTING);
515
			mutex_exit(&db->db_mtx);
516
		}
517
		mutex_exit(&dn->dn_dbufs_mtx);
518
	}
519
#endif
506
520
507
	/*
521
	/*
508
	 * XXX - It would be nice to assert this, but we may still
522
	 * XXX - It would be nice to assert this, but we may still

Return to bug 202607