| 3545 | |
| 3546 | #pragma weak dmu_buf_add_ref = dbuf_add_ref |
| 3547 | void |
| 3548 | dbuf_add_ref(dmu_buf_impl_t *db, void *tag) |
| 3549 | { |
| 3550 | int64_t holds = zfs_refcount_add(&db->db_holds, tag); |
| 3551 | VERIFY3S(holds, >, 1); |
| 3552 | } |
| 3553 | |
| 3554 | #pragma weak dmu_buf_try_add_ref = dbuf_try_add_ref |
| 3555 | boolean_t |
no test coverage detected