zio.c (268649) | zio.c (268650) |
---|---|
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 --- 3353 unchanged lines hidden (view full) --- 3362zbookmark_is_before(const dnode_phys_t *dnp, const zbookmark_t *zb1, 3363 const zbookmark_t *zb2) 3364{ 3365 uint64_t zb1nextL0, zb2thisobj; 3366 3367 ASSERT(zb1->zb_objset == zb2->zb_objset); 3368 ASSERT(zb2->zb_level == 0); 3369 | 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 --- 3353 unchanged lines hidden (view full) --- 3362zbookmark_is_before(const dnode_phys_t *dnp, const zbookmark_t *zb1, 3363 const zbookmark_t *zb2) 3364{ 3365 uint64_t zb1nextL0, zb2thisobj; 3366 3367 ASSERT(zb1->zb_objset == zb2->zb_objset); 3368 ASSERT(zb2->zb_level == 0); 3369 |
3370 /* 3371 * A bookmark in the deadlist is considered to be after 3372 * everything else. 3373 */ 3374 if (zb2->zb_object == DMU_DEADLIST_OBJECT) 3375 return (B_TRUE); 3376 | |
3377 /* The objset_phys_t isn't before anything. */ 3378 if (dnp == NULL) 3379 return (B_FALSE); 3380 3381 zb1nextL0 = (zb1->zb_blkid + 1) << 3382 ((zb1->zb_level) * (dnp->dn_indblkshift - SPA_BLKPTRSHIFT)); 3383 3384 zb2thisobj = zb2->zb_object ? zb2->zb_object : --- 16 unchanged lines hidden --- | 3370 /* The objset_phys_t isn't before anything. */ 3371 if (dnp == NULL) 3372 return (B_FALSE); 3373 3374 zb1nextL0 = (zb1->zb_blkid + 1) << 3375 ((zb1->zb_level) * (dnp->dn_indblkshift - SPA_BLKPTRSHIFT)); 3376 3377 zb2thisobj = zb2->zb_object ? zb2->zb_object : --- 16 unchanged lines hidden --- |