Lines Matching refs:db_holds
145 refcount_create(&db->db_holds);
158 refcount_destroy(&db->db_holds);
289 ASSERT(refcount_is_zero(&db->db_holds));
326 holds = refcount_count(&db->db_holds);
848 if (arc_released(db->db_buf) || refcount_count(&db->db_holds) > 1) {
910 ASSERT(refcount_count(&db->db_holds) > 0);
943 ASSERT(!refcount_is_zero(&db->db_holds));
1067 } else if (refcount_count(&db->db_holds) > db->db_dirtycnt) {
1100 ASSERT(!refcount_is_zero(&db->db_holds));
1192 ASSERT(!refcount_is_zero(&db->db_holds));
1306 if (refcount_count(&db->db_holds) == 0) {
1487 ASSERT(!refcount_is_zero(&db->db_holds));
1861 if (refcount_remove(&db->db_holds, (void *)(uintptr_t)txg) == 0) {
1877 ASSERT(!refcount_is_zero(&db->db_holds));
1929 ASSERT(!refcount_is_zero(&db->db_holds));
2004 ASSERT(!refcount_is_zero(&db->db_holds));
2023 refcount_count(&db->db_holds) - 1 > db->db_dirtycnt) {
2068 ASSERT(refcount_is_zero(&db->db_holds));
2132 ASSERT(refcount_is_zero(&db->db_holds));
2540 * Returns with db_holds incremented, and db_mtx not held.
2614 ASSERT(refcount_is_zero(&db->db_holds));
2619 (void) refcount_add(&db->db_holds, tag);
2691 int64_t holds = refcount_add(&db->db_holds, tag);
2711 (void) refcount_add(&db->db_holds, tag);
2741 * db_dirtycnt and db_holds to be updated atomically.
2756 holds = refcount_remove(&db->db_holds, tag);
2855 return (refcount_count(&db->db_holds));
3138 refcount_count(&db->db_holds) > 1 &&