Lines Matching defs:copy
175 struct nfs4_copy_state *copy, *tmp_copy;
181 copy = kzalloc(sizeof(struct nfs4_copy_state), GFP_NOFS);
182 if (!copy)
198 kfree(copy);
199 copy = tmp_copy;
203 memcpy(©->stateid, &res->write_res.stateid, NFS4_STATEID_SIZE);
204 init_completion(©->completion);
205 copy->parent_dst_state = dst_ctx->state;
206 copy->parent_src_state = src_ctx->state;
208 list_add_tail(©->copies, &dst_server->ss_copies);
213 list_add_tail(©->src_copies, &src_server->ss_copies);
217 status = wait_for_completion_interruptible(©->completion);
219 list_del_init(©->copies);
223 list_del_init(©->src_copies);
228 } else if (copy->flags || copy->error == NFS4ERR_PARTNER_NO_AUTH) {
234 res->write_res.count = copy->count;
235 memcpy(&res->write_res.verifier, ©->verf, sizeof(copy->verf));
236 status = -copy->error;
239 kfree(copy);
242 nfs42_do_offload_cancel_async(dst, ©->stateid);
263 dprintk("commit verf differs from copy verf\n");