MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vdev_dtl_empty

Function vdev_dtl_empty

freebsd/contrib/openzfs/module/zfs/vdev.c:2668–2679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2666}
2667
2668boolean_t
2669vdev_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

Callers 5

vdev_raidz_need_resilverFunction · 0.85
vdev_dtl_requiredFunction · 0.85
vdev_replace_in_progressFunction · 0.85

Calls 3

mutex_enterFunction · 0.85
range_tree_is_emptyFunction · 0.85
mutex_exitFunction · 0.85

Tested by

no test coverage detected