Searched refs:zv_open_count (Results 1 – 4 of 4) sorted by relevance
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | zvol_os.c | 267 if (zv->zv_open_count == 0) { in zvol_geom_open() 274 if (zv->zv_open_count != 0) { in zvol_geom_open() 284 if (zv->zv_open_count == 0) { in zvol_geom_open() 330 if (zv->zv_open_count != 0) { in zvol_geom_open() 337 zv->zv_open_count += count; in zvol_geom_open() 339 if (zv->zv_open_count == 0) { in zvol_geom_open() 368 ASSERT3U(zv->zv_open_count, ==, 1); in zvol_geom_close() 378 ASSERT3U(zv->zv_open_count, >, 0); in zvol_geom_close() 385 new_open_count = zv->zv_open_count - count; in zvol_geom_close() 392 new_open_count = zv->zv_open_count - count; in zvol_geom_close() [all …]
|
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | zvol_os.c | 252 ASSERT3U(zv->zv_open_count, >, 0); in zvol_write() 361 ASSERT3U(zv->zv_open_count, >, 0); in zvol_discard() 446 ASSERT3U(zv->zv_open_count, >, 0); in zvol_read() 751 if (zv->zv_open_count == 0) { in zvol_open() 757 if (zv->zv_open_count != 0) { in zvol_open() 770 if (zv->zv_open_count == 0) { in zvol_open() 830 if (zv->zv_open_count == 0) in zvol_open() 835 zv->zv_open_count++; in zvol_open() 870 ASSERT3U(zv->zv_open_count, >, 0); in zvol_release() 876 if (zv->zv_open_count == 1) { in zvol_release() [all …]
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | zvol_impl.h | 45 uint32_t zv_open_count; /* open counts */ member
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | zvol.c | 1117 return (zv->zv_open_count > 0 ? zv : NULL); in zvol_tag() 1139 if (zv->zv_open_count > 0) in zvol_suspend() 1161 if (zv->zv_open_count > 0) { in zvol_resume() 1531 while (zv->zv_open_count > 0 || atomic_read(&zv->zv_suspend_ref)) { in zvol_remove_minor_task() 1590 if (zv->zv_open_count > 0 || in zvol_remove_minors_impl() 1667 if (zv->zv_open_count > 0 || atomic_read(&zv->zv_suspend_ref)) { in zvol_remove_minor_impl()
|