Lines Matching refs:copy
140 struct nfs4_copy_state *copy, *tmp_copy; in handle_async_copy() local
145 copy = kzalloc(sizeof(struct nfs4_copy_state), GFP_NOFS); in handle_async_copy()
146 if (!copy) in handle_async_copy()
161 kfree(copy); in handle_async_copy()
162 copy = tmp_copy; in handle_async_copy()
166 memcpy(©->stateid, &res->write_res.stateid, NFS4_STATEID_SIZE); in handle_async_copy()
167 init_completion(©->completion); in handle_async_copy()
168 copy->parent_state = ctx->state; in handle_async_copy()
170 list_add_tail(©->copies, &server->ss_copies); in handle_async_copy()
173 status = wait_for_completion_interruptible(©->completion); in handle_async_copy()
175 list_del_init(©->copies); in handle_async_copy()
179 } else if (copy->flags) { in handle_async_copy()
184 res->write_res.count = copy->count; in handle_async_copy()
185 memcpy(&res->write_res.verifier, ©->verf, sizeof(copy->verf)); in handle_async_copy()
186 status = -copy->error; in handle_async_copy()
188 kfree(copy); in handle_async_copy()
191 nfs42_do_offload_cancel_async(dst, ©->stateid); in handle_async_copy()
192 kfree(copy); in handle_async_copy()