| 2666 | } |
| 2667 | |
| 2668 | boolean_t |
| 2669 | vdev_dtl_empty(vdev_t *vd, vdev_dtl_type_t t) |
| 2670 | { |
| 2671 | range_tree_t *rt = vd->vdev_dtl[t]; |
| 2672 | boolean_t empty; |
| 2673 | |
| 2674 | mutex_enter(&vd->vdev_dtl_lock); |
| 2675 | empty = range_tree_is_empty(rt); |
| 2676 | mutex_exit(&vd->vdev_dtl_lock); |
| 2677 | |
| 2678 | return (empty); |
| 2679 | } |
| 2680 | |
| 2681 | /* |
| 2682 | * Check if the txg falls within the range which must be |
no test coverage detected