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

Function vdev_trim_should_stop

freebsd/contrib/openzfs/module/zfs/vdev_trim.c:167–172  ·  view source on GitHub ↗

* Determines whether a vdev_trim_thread() should be stopped. */

Source from the content-addressed store, hash-verified

165 * Determines whether a vdev_trim_thread() should be stopped.
166 */
167static boolean_t
168vdev_trim_should_stop(vdev_t *vd)
169{
170 return (vd->vdev_trim_exit_wanted || !vdev_writeable(vd) ||
171 vd->vdev_detached || vd->vdev_top->vdev_removing);
172}
173
174/*
175 * Determines whether a vdev_autotrim_thread() should be stopped.

Callers 1

vdev_trim_rangeFunction · 0.85

Calls 1

vdev_writeableFunction · 0.85

Tested by

no test coverage detected