dnode_sync.c (284593) | dnode_sync.c (286541) |
---|---|
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 --- 62 unchanged lines hidden (view full) --- 71 ASSERT3U(sizeof (blkptr_t) * nblkptr, <=, db->db.db_size); 72 bcopy(dn->dn_phys->dn_blkptr, db->db.db_data, 73 sizeof (blkptr_t) * nblkptr); 74 arc_buf_freeze(db->db_buf); 75 } 76 77 /* set dbuf's parent pointers to new indirect buf */ 78 for (i = 0; i < nblkptr; i++) { | 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 --- 62 unchanged lines hidden (view full) --- 71 ASSERT3U(sizeof (blkptr_t) * nblkptr, <=, db->db.db_size); 72 bcopy(dn->dn_phys->dn_blkptr, db->db.db_data, 73 sizeof (blkptr_t) * nblkptr); 74 arc_buf_freeze(db->db_buf); 75 } 76 77 /* set dbuf's parent pointers to new indirect buf */ 78 for (i = 0; i < nblkptr; i++) { |
79 dmu_buf_impl_t *child = dbuf_find(dn, old_toplvl, i); | 79 dmu_buf_impl_t *child = 80 dbuf_find(dn->dn_objset, dn->dn_object, old_toplvl, i); |
80 81 if (child == NULL) 82 continue; 83#ifdef DEBUG 84 DB_DNODE_ENTER(child); 85 ASSERT3P(DB_DNODE(child), ==, dn); 86 DB_DNODE_EXIT(child); 87#endif /* DEBUG */ --- 640 unchanged lines hidden --- | 81 82 if (child == NULL) 83 continue; 84#ifdef DEBUG 85 DB_DNODE_ENTER(child); 86 ASSERT3P(DB_DNODE(child), ==, dn); 87 DB_DNODE_EXIT(child); 88#endif /* DEBUG */ --- 640 unchanged lines hidden --- |