Lines Matching refs:db_state

234 			if (db->db_state != DB_EVICTING) {  in dbuf_find()
285 if (dbf->db_state != DB_EVICTING) { in dbuf_hash_insert()
319 ASSERT(db->db_state == DB_EVICTING); in dbuf_hash_remove()
353 ASSERT3U(db->db_state, ==, DB_CACHED); in dbuf_verify_user()
807 db->db_state != DB_FILL && !dn->dn_free_txg) { in dbuf_verify()
869 if (db->db_state != DB_NOFILL) in dbuf_clear_data()
870 db->db_state = DB_UNCACHED; in dbuf_clear_data()
992 ASSERT3U(db->db_state, ==, DB_READ); in dbuf_read_done()
1004 db->db_state = DB_UNCACHED; in dbuf_read_done()
1017 db->db_state = DB_CACHED; in dbuf_read_done()
1022 db->db_state = DB_CACHED; in dbuf_read_done()
1102 ASSERT(db->db_state == DB_UNCACHED); in dbuf_read_impl()
1131 db->db_state = DB_CACHED; in dbuf_read_impl()
1172 db->db_state = DB_CACHED; in dbuf_read_impl()
1205 db->db_state = DB_READ; in dbuf_read_impl()
1323 if (db->db_state == DB_NOFILL) in dbuf_read()
1334 if (db->db_state == DB_CACHED) { in dbuf_read()
1369 } else if (db->db_state == DB_UNCACHED) { in dbuf_read()
1413 while (db->db_state == DB_READ || in dbuf_read()
1414 db->db_state == DB_FILL) { in dbuf_read()
1415 ASSERT(db->db_state == DB_READ || in dbuf_read()
1421 if (db->db_state == DB_UNCACHED) in dbuf_read()
1436 while (db->db_state == DB_READ || db->db_state == DB_FILL) in dbuf_noread()
1438 if (db->db_state == DB_UNCACHED) { in dbuf_noread()
1445 db->db_state = DB_FILL; in dbuf_noread()
1446 } else if (db->db_state == DB_NOFILL) { in dbuf_noread()
1449 ASSERT3U(db->db_state, ==, DB_CACHED); in dbuf_noread()
1516 db_search.db_state = DB_SEARCH; in dbuf_free_range()
1540 if (db->db_state == DB_UNCACHED || in dbuf_free_range()
1541 db->db_state == DB_NOFILL || in dbuf_free_range()
1542 db->db_state == DB_EVICTING) { in dbuf_free_range()
1547 if (db->db_state == DB_READ || db->db_state == DB_FILL) { in dbuf_free_range()
1584 if (db->db_state == DB_CACHED) { in dbuf_free_range()
1673 db->db_state != DB_NOFILL) { in dbuf_redirty()
1729 db->db_state == DB_CACHED || db->db_state == DB_FILL || in dbuf_dirty()
1730 db->db_state == DB_NOFILL); in dbuf_dirty()
1820 if (db->db_state != DB_NOFILL) { in dbuf_dirty()
2045 if (db->db_state != DB_NOFILL) { in dbuf_undirty()
2060 ASSERT(db->db_state == DB_NOFILL || arc_released(db->db_buf)); in dbuf_undirty()
2091 if (dr->dr_txg == tx->tx_txg && db->db_state == DB_CACHED) { in dmu_buf_will_dirty_impl()
2120 db->db_state = DB_NOFILL; in dmu_buf_will_not_fill()
2188 if (db->db_state == DB_FILL) { in dbuf_fill_done()
2196 db->db_state = DB_CACHED; in dbuf_fill_done()
2259 while (db->db_state == DB_READ || db->db_state == DB_FILL) in dbuf_assign_arcbuf()
2262 ASSERT(db->db_state == DB_CACHED || db->db_state == DB_UNCACHED); in dbuf_assign_arcbuf()
2264 if (db->db_state == DB_CACHED && in dbuf_assign_arcbuf()
2282 if (db->db_state == DB_CACHED) { in dbuf_assign_arcbuf()
2304 db->db_state = DB_FILL; in dbuf_assign_arcbuf()
2331 db->db_state = DB_UNCACHED; in dbuf_destroy()
2349 ASSERT(db->db_state == DB_UNCACHED || db->db_state == DB_NOFILL); in dbuf_destroy()
2352 db->db_state = DB_EVICTING; in dbuf_destroy()
2543 db->db_state = DB_UNCACHED; in dbuf_create()
2567 db->db_state = DB_EVICTING; in dbuf_create()
2576 db->db_state = DB_UNCACHED; in dbuf_create()
2972 if (fail_uncached && db->db_state != DB_CACHED) { in dbuf_hold_impl()
2991 db->db_state == DB_CACHED && db->db_data_pending) { in dbuf_hold_impl()
3202 ASSERT(db->db_state == DB_UNCACHED || in dbuf_rele_and_unlock()
3203 db->db_state == DB_NOFILL); in dbuf_rele_and_unlock()
3470 ASSERT3U(db->db_state, ==, DB_CACHED); in dbuf_sync_indirect()
3513 if (db->db_state == DB_UNCACHED) { in dbuf_sync_leaf()
3516 } else if (db->db_state == DB_FILL) { in dbuf_sync_leaf()
3520 ASSERT(db->db_state == DB_CACHED || db->db_state == DB_NOFILL); in dbuf_sync_leaf()
3597 if (db->db_state != DB_NOFILL && in dbuf_sync_leaf()
3912 if (db->db_state != DB_NOFILL) { in dbuf_write_done()
4050 ASSERT3S(db->db_state, ==, DB_CACHED); in dbuf_can_remap()
4145 if (db->db_state != DB_NOFILL) { in dbuf_write()
4195 wp_flag |= (db->db_state == DB_NOFILL) ? WP_NOFILL : 0; in dbuf_write()
4228 } else if (db->db_state == DB_NOFILL) { in dbuf_write()