dbuf.c (332552) | dbuf.c (332785) |
---|---|
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 --- 2565 unchanged lines hidden (view full) --- 2574 db = dbuf_create(dn, level, blkid, parent, bp); 2575 } 2576 2577 if (fail_uncached && db->db_state != DB_CACHED) { 2578 mutex_exit(&db->db_mtx); 2579 return (SET_ERROR(ENOENT)); 2580 } 2581 | 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 --- 2565 unchanged lines hidden (view full) --- 2574 db = dbuf_create(dn, level, blkid, parent, bp); 2575 } 2576 2577 if (fail_uncached && db->db_state != DB_CACHED) { 2578 mutex_exit(&db->db_mtx); 2579 return (SET_ERROR(ENOENT)); 2580 } 2581 |
2582 if (db->db_buf != NULL) | 2582 if (db->db_buf != NULL) { 2583 arc_buf_access(db->db_buf); |
2583 ASSERT3P(db->db.db_data, ==, db->db_buf->b_data); | 2584 ASSERT3P(db->db.db_data, ==, db->db_buf->b_data); |
2585 } |
|
2584 2585 ASSERT(db->db_buf == NULL || arc_referenced(db->db_buf)); 2586 2587 /* 2588 * If this buffer is currently syncing out, and we are are 2589 * still referencing it from db_data, we need to make a copy 2590 * of it in case we decide we want to dirty it again in this txg. 2591 */ --- 1166 unchanged lines hidden --- | 2586 2587 ASSERT(db->db_buf == NULL || arc_referenced(db->db_buf)); 2588 2589 /* 2590 * If this buffer is currently syncing out, and we are are 2591 * still referencing it from db_data, we need to make a copy 2592 * of it in case we decide we want to dirty it again in this txg. 2593 */ --- 1166 unchanged lines hidden --- |