| 6762 | } |
| 6763 | |
| 6764 | int |
| 6765 | arc_released(arc_buf_t *buf) |
| 6766 | { |
| 6767 | int released; |
| 6768 | |
| 6769 | mutex_enter(&buf->b_evict_lock); |
| 6770 | released = (buf->b_data != NULL && |
| 6771 | buf->b_hdr->b_l1hdr.b_state == arc_anon); |
| 6772 | mutex_exit(&buf->b_evict_lock); |
| 6773 | return (released); |
| 6774 | } |
| 6775 | |
| 6776 | #ifdef ZFS_DEBUG |
| 6777 | int |
no test coverage detected