if (tevent_req_nomem(subreq, req)) {
return tevent_req_post(req, ev);
}
- tevent_req_set_callback(subreq, vfs_fsync_done, req);
+ tevent_req_set_callback(subreq, vfs_fsync_done, state);
talloc_set_destructor(state, vfs_fsync_state_destructor);
static void vfs_fsync_done(struct tevent_req *subreq)
{
- struct tevent_req *req = tevent_req_callback_data(
- subreq, struct tevent_req);
- struct vfswrap_fsync_state *state = tevent_req_data(
- req, struct vfswrap_fsync_state);
+ struct vfswrap_fsync_state *state = tevent_req_callback_data(
+ subreq, struct vfswrap_fsync_state);
+ struct tevent_req *req = state->req;
int ret;
ret = pthreadpool_tevent_job_recv(subreq);