Lines Matching defs:res

56 	struct nfs42_falloc_res res = {
62 msg->rpc_resp = &res;
76 res.falloc_fattr = nfs_alloc_fattr();
77 if (!res.falloc_fattr)
81 &args.seq_args, &res.seq_res, 0);
84 res.falloc_fattr);
86 kfree(res.falloc_fattr);
167 static int handle_async_copy(struct nfs42_copy_res *res,
189 if (memcmp(&res->write_res.stateid, &tmp_copy->stateid,
203 memcpy(&copy->stateid, &res->write_res.stateid, NFS4_STATEID_SIZE);
234 res->write_res.count = copy->count;
235 memcpy(&res->write_res.verifier, &copy->verf, sizeof(copy->verf));
249 struct nfs42_copy_res *res)
258 status = nfs4_proc_commit(dst, pos_dst, res->write_res.count, &cres);
261 if (nfs_write_verifier_cmp(&res->write_res.verifier.verifier,
277 struct nfs42_copy_res *res,
285 .rpc_resp = res,
325 res->commit_res.verf = NULL;
327 res->commit_res.verf =
329 if (!res->commit_res.verf)
338 &args->seq_args, &res->seq_res, 0);
345 nfs_write_verifier_cmp(&res->write_res.verifier.verifier,
346 &res->commit_res.verf->verifier)) {
351 if (!res->synchronous) {
352 status = handle_async_copy(res, dst_server, src_server, src,
358 if ((!res->synchronous || !args->sync) &&
359 res->write_res.verifier.committed != NFS_FILE_SYNC) {
360 status = process_copy_commit(dst, pos_dst, res);
367 (pos_dst + res->write_res.count - 1) >> PAGE_SHIFT));
377 status = res->write_res.count;
380 kfree(res->commit_res.verf);
400 struct nfs42_copy_res res;
430 &args, &res,
447 args.sync != res.synchronous) {
448 args.sync = res.synchronous;
475 struct nfs42_offload_status_res res;
484 &data->res.osr_seq_res, task);
491 nfs41_sequence_done(task, &data->res.osr_seq_res);
541 msg.rpc_resp = &data->res;
543 nfs4_init_sequence(&data->args.osa_seq_args, &data->res.osr_seq_res,
557 struct nfs42_copy_notify_res *res)
563 .rpc_resp = res,
586 &args->cna_seq_args, &res->cnr_seq_res, 0);
596 struct nfs42_copy_notify_res *res)
618 status = _nfs42_proc_copy_notify(src, dst, args, res);
641 struct nfs42_seek_res res;
645 .rpc_resp = &res,
667 &args.seq_args, &res.seq_res, 0);
673 if (whence == SEEK_DATA && res.sr_eof)
676 return vfs_setpos(filep, res.sr_offset, inode->i_sb->s_maxbytes);
727 &data->res.seq_res, task);
737 if (!nfs4_sequence_done(task, &data->res.seq_res))
825 .rpc_resp = &data->res,
841 nfs4_init_sequence(&data->args.seq_args, &data->res.seq_res, 0, 0);
897 &data->res.seq_res, task);
907 if (!nfs4_sequence_done(task, &data->res.seq_res))
1001 data->res.num_errors++;
1004 msg.rpc_resp = &data->res;
1007 nfs4_init_sequence(&data->args.seq_args, &data->res.seq_res, 0, 0);
1032 struct nfs42_clone_res res = {
1038 msg->rpc_resp = &res;
1055 res.dst_fattr = nfs_alloc_fattr();
1056 if (!res.dst_fattr)
1060 &args.seq_args, &res.seq_res, 0);
1062 status = nfs_post_op_update_inode(dst_inode, res.dst_fattr);
1064 kfree(res.dst_fattr);
1131 struct nfs42_removexattrres res;
1135 .rpc_resp = &res,
1141 &res.seq_res, 1);
1143 nfs4_update_changeattr(inode, &res.cinfo, timestamp, 0);
1160 struct nfs42_setxattrres res;
1164 .rpc_resp = &res,
1180 &res.seq_res, 1);
1186 nfs4_update_changeattr(inode, &res.cinfo, timestamp, 0);
1202 struct nfs42_getxattrres res;
1206 .rpc_resp = &res,
1211 &res.seq_res, 0);
1225 nfs4_xattr_cache_add(inode, name, NULL, pages, res.xattr_len);
1228 if (res.xattr_len > buflen)
1230 _copy_from_pages(buf, pages, 0, res.xattr_len);
1233 np = DIV_ROUND_UP(res.xattr_len, PAGE_SIZE);
1237 return res.xattr_len;
1249 struct nfs42_listxattrsres res = {
1257 .rpc_resp = &res,
1264 res.scratch = alloc_page(GFP_KERNEL);
1265 if (!res.scratch)
1286 &res.seq_res, 0);
1289 ret = res.copied;
1290 *cookiep = res.cookie;
1291 *eofp = res.eof;
1301 __free_page(res.scratch);