Home
last modified time | relevance | path

Searched refs:zch (Results 1 – 2 of 2) sorted by relevance

/f-stack/freebsd/contrib/openzfs/module/zfs/
H A Dzcp_synctask.c277 zcp_cleanup_handler_t *zch = zcp_register_cleanup(state, in zcp_synctask_snapshot() local
293 zcp_deregister_cleanup(state, zch); in zcp_synctask_snapshot()
365 zcp_cleanup_handler_t *zch = zcp_register_cleanup(state, in zcp_synctask_inherit_prop() local
371 zcp_deregister_cleanup(state, zch); in zcp_synctask_inherit_prop()
404 zcp_cleanup_handler_t *zch = zcp_register_cleanup(state, in zcp_synctask_bookmark() local
414 zcp_deregister_cleanup(state, zch); in zcp_synctask_bookmark()
462 zcp_cleanup_handler_t *zch; in zcp_synctask_wrapper() local
470 zch = zcp_register_cleanup(state, in zcp_synctask_wrapper()
511 zcp_deregister_cleanup(state, zch); in zcp_synctask_wrapper()
H A Dzcp.c174 zcp_cleanup_handler_t *zch = kmem_alloc(sizeof (*zch), KM_SLEEP); in zcp_register_cleanup() local
175 zch->zch_cleanup_func = cleanfunc; in zcp_register_cleanup()
176 zch->zch_cleanup_arg = cleanarg; in zcp_register_cleanup()
177 list_insert_head(&ri->zri_cleanup_handlers, zch); in zcp_register_cleanup()
179 return (zch); in zcp_register_cleanup()
186 list_remove(&ri->zri_cleanup_handlers, zch); in zcp_deregister_cleanup()
187 kmem_free(zch, sizeof (*zch)); in zcp_deregister_cleanup()
199 for (zcp_cleanup_handler_t *zch = in zcp_cleanup() local
201 zch = list_remove_head(&ri->zri_cleanup_handlers)) { in zcp_cleanup()
202 zch->zch_cleanup_func(zch->zch_cleanup_arg); in zcp_cleanup()
[all …]