Lines Matching refs:res
33 struct nfs42_falloc_res res = { in _nfs42_proc_fallocate() local
39 msg->rpc_resp = &res; in _nfs42_proc_fallocate()
46 res.falloc_fattr = nfs_alloc_fattr(); in _nfs42_proc_fallocate()
47 if (!res.falloc_fattr) in _nfs42_proc_fallocate()
51 &args.seq_args, &res.seq_res, 0); in _nfs42_proc_fallocate()
53 status = nfs_post_op_update_inode(inode, res.falloc_fattr); in _nfs42_proc_fallocate()
55 kfree(res.falloc_fattr); in _nfs42_proc_fallocate()
134 static int handle_async_copy(struct nfs42_copy_res *res, in handle_async_copy() argument
152 if (memcmp(&res->write_res.stateid, &tmp_copy->stateid, in handle_async_copy()
166 memcpy(©->stateid, &res->write_res.stateid, NFS4_STATEID_SIZE); 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()
197 struct nfs42_copy_res *res) in process_copy_commit() argument
206 status = nfs4_proc_commit(dst, pos_dst, res->write_res.count, &cres); in process_copy_commit()
209 if (nfs_write_verifier_cmp(&res->write_res.verifier.verifier, in process_copy_commit()
225 struct nfs42_copy_res *res) in _nfs42_proc_copy() argument
230 .rpc_resp = res, in _nfs42_proc_copy()
258 res->commit_res.verf = NULL; in _nfs42_proc_copy()
260 res->commit_res.verf = in _nfs42_proc_copy()
262 if (!res->commit_res.verf) in _nfs42_proc_copy()
269 &args->seq_args, &res->seq_res, 0); in _nfs42_proc_copy()
276 nfs_write_verifier_cmp(&res->write_res.verifier.verifier, in _nfs42_proc_copy()
277 &res->commit_res.verf->verifier)) { in _nfs42_proc_copy()
282 if (!res->synchronous) { in _nfs42_proc_copy()
283 status = handle_async_copy(res, server, src, dst, in _nfs42_proc_copy()
289 if ((!res->synchronous || !args->sync) && in _nfs42_proc_copy()
290 res->write_res.verifier.committed != NFS_FILE_SYNC) { in _nfs42_proc_copy()
291 status = process_copy_commit(dst, pos_dst, res); in _nfs42_proc_copy()
297 pos_dst + res->write_res.count); in _nfs42_proc_copy()
299 status = res->write_res.count; in _nfs42_proc_copy()
302 kfree(res->commit_res.verf); in _nfs42_proc_copy()
321 struct nfs42_copy_res res; in nfs42_proc_copy() local
350 &args, &res); in nfs42_proc_copy()
382 struct nfs42_offload_status_res res; member
391 &data->res.osr_seq_res, task); in nfs42_offload_cancel_prepare()
398 nfs41_sequence_done(task, &data->res.osr_seq_res); in nfs42_offload_cancel_done()
448 msg.rpc_resp = &data->res; in nfs42_do_offload_cancel_async()
450 nfs4_init_sequence(&data->args.osa_seq_args, &data->res.osr_seq_res, in nfs42_do_offload_cancel_async()
472 struct nfs42_seek_res res; in _nfs42_proc_llseek() local
476 .rpc_resp = &res, in _nfs42_proc_llseek()
495 &args.seq_args, &res.seq_res, 0); in _nfs42_proc_llseek()
501 return vfs_setpos(filep, res.sr_offset, inode->i_sb->s_maxbytes); in _nfs42_proc_llseek()
552 &data->res.seq_res, task); in nfs42_layoutstat_prepare()
562 if (!nfs4_sequence_done(task, &data->res.seq_res)) in nfs42_layoutstat_done()
648 .rpc_resp = &data->res, in nfs42_proc_layoutstats_generic()
664 nfs4_init_sequence(&data->args.seq_args, &data->res.seq_res, 0, 0); in nfs42_proc_layoutstats_generic()
720 &data->res.seq_res, task); in nfs42_layouterror_prepare()
730 if (!nfs4_sequence_done(task, &data->res.seq_res)) in nfs42_layouterror_done()
821 data->res.num_errors++; in nfs42_proc_layouterror()
824 msg.rpc_resp = &data->res; in nfs42_proc_layouterror()
827 nfs4_init_sequence(&data->args.seq_args, &data->res.seq_res, 0, 0); in nfs42_proc_layouterror()
852 struct nfs42_clone_res res = { in _nfs42_proc_clone() local
858 msg->rpc_resp = &res; in _nfs42_proc_clone()
870 res.dst_fattr = nfs_alloc_fattr(); in _nfs42_proc_clone()
871 if (!res.dst_fattr) in _nfs42_proc_clone()
875 &args.seq_args, &res.seq_res, 0); in _nfs42_proc_clone()
877 status = nfs_post_op_update_inode(dst_inode, res.dst_fattr); in _nfs42_proc_clone()
879 kfree(res.dst_fattr); in _nfs42_proc_clone()