* Called from open context to perform a callback in syncing context. Waits * for the operation to complete. * * The checkfunc will be called from open context as a preliminary check * which can quickly fail. If it succeeds, it will be called again from * syncing context. The checkfunc should generally be designed to work * properly in either context, but if necessary it can check * dmu_t
| 125 | * the dataset. |
| 126 | */ |
| 127 | int |
| 128 | dsl_sync_task(const char *pool, dsl_checkfunc_t *checkfunc, |
| 129 | dsl_syncfunc_t *syncfunc, void *arg, |
| 130 | int blocks_modified, zfs_space_check_t space_check) |
| 131 | { |
| 132 | return (dsl_sync_task_common(pool, checkfunc, syncfunc, NULL, arg, |
| 133 | blocks_modified, space_check, B_FALSE)); |
| 134 | } |
| 135 | |
| 136 | /* |
| 137 | * An early synctask works exactly as a standard synctask with one important |
no test coverage detected