arc.c (242845) | arc.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 --- 3674 unchanged lines hidden (view full) --- 3683 panic("bad overwrite, hdr=%p exists=%p", 3684 (void *)hdr, (void *)exists); 3685 ASSERT(refcount_is_zero(&exists->b_refcnt)); 3686 arc_change_state(arc_anon, exists, hash_lock); 3687 mutex_exit(hash_lock); 3688 arc_hdr_destroy(exists); 3689 exists = buf_hash_insert(hdr, &hash_lock); 3690 ASSERT3P(exists, ==, NULL); | 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 --- 3674 unchanged lines hidden (view full) --- 3683 panic("bad overwrite, hdr=%p exists=%p", 3684 (void *)hdr, (void *)exists); 3685 ASSERT(refcount_is_zero(&exists->b_refcnt)); 3686 arc_change_state(arc_anon, exists, hash_lock); 3687 mutex_exit(hash_lock); 3688 arc_hdr_destroy(exists); 3689 exists = buf_hash_insert(hdr, &hash_lock); 3690 ASSERT3P(exists, ==, NULL); |
3691 } else if (zio->io_flags & ZIO_FLAG_NOPWRITE) { 3692 /* nopwrite */ 3693 ASSERT(zio->io_prop.zp_nopwrite); 3694 if (!BP_EQUAL(&zio->io_bp_orig, zio->io_bp)) 3695 panic("bad nopwrite, hdr=%p exists=%p", 3696 (void *)hdr, (void *)exists); |
|
3691 } else { 3692 /* Dedup */ 3693 ASSERT(hdr->b_datacnt == 1); 3694 ASSERT(hdr->b_state == arc_anon); 3695 ASSERT(BP_GET_DEDUP(zio->io_bp)); 3696 ASSERT(BP_GET_LEVEL(zio->io_bp) == 0); 3697 } 3698 } --- 1498 unchanged lines hidden --- | 3697 } else { 3698 /* Dedup */ 3699 ASSERT(hdr->b_datacnt == 1); 3700 ASSERT(hdr->b_state == arc_anon); 3701 ASSERT(BP_GET_DEDUP(zio->io_bp)); 3702 ASSERT(BP_GET_LEVEL(zio->io_bp) == 0); 3703 } 3704 } --- 1498 unchanged lines hidden --- |