Lines Matching refs:res

56 	struct nfs42_falloc_res res = {
62 msg->rpc_resp = &res;
75 res.falloc_fattr = nfs_alloc_fattr();
76 if (!res.falloc_fattr)
80 &args.seq_args, &res.seq_res, 0);
89 res.falloc_fattr);
95 kfree(res.falloc_fattr);
176 static int handle_async_copy(struct nfs42_copy_res *res,
197 if (memcmp(&res->write_res.stateid, &iter->stateid,
211 memcpy(&copy->stateid, &res->write_res.stateid, NFS4_STATEID_SIZE);
242 res->write_res.count = copy->count;
243 memcpy(&res->write_res.verifier, &copy->verf, sizeof(copy->verf));
257 struct nfs42_copy_res *res)
266 status = nfs4_proc_commit(dst, pos_dst, res->write_res.count, &cres);
269 if (nfs_write_verifier_cmp(&res->write_res.verifier.verifier,
314 struct nfs42_copy_res *res,
322 .rpc_resp = res,
362 res->commit_res.verf = NULL;
364 res->commit_res.verf =
366 if (!res->commit_res.verf)
375 &args->seq_args, &res->seq_res, 0);
376 trace_nfs4_copy(src_inode, dst_inode, args, res, nss, status);
383 nfs_write_verifier_cmp(&res->write_res.verifier.verifier,
384 &res->commit_res.verf->verifier)) {
389 if (!res->synchronous) {
390 status = handle_async_copy(res, dst_server, src_server, src,
396 if ((!res->synchronous || !args->sync) &&
397 res->write_res.verifier.committed != NFS_FILE_SYNC) {
398 status = process_copy_commit(dst, pos_dst, res);
403 nfs42_copy_dest_done(dst_inode, pos_dst, res->write_res.count);
405 status = res->write_res.count;
408 kfree(res->commit_res.verf);
428 struct nfs42_copy_res res;
458 &args, &res,
476 args.sync != res.synchronous) {
477 args.sync = res.synchronous;
504 struct nfs42_offload_status_res res;
513 &data->res.osr_seq_res, task);
521 nfs41_sequence_done(task, &data->res.osr_seq_res);
571 msg.rpc_resp = &data->res;
573 nfs4_init_sequence(&data->args.osa_seq_args, &data->res.osr_seq_res,
587 struct nfs42_copy_notify_res *res)
593 .rpc_resp = res,
616 &args->cna_seq_args, &res->cnr_seq_res, 0);
617 trace_nfs4_copy_notify(file_inode(src), args, res, status);
627 struct nfs42_copy_notify_res *res)
649 status = _nfs42_proc_copy_notify(src, dst, args, res);
672 struct nfs42_seek_res res;
676 .rpc_resp = &res,
698 &args.seq_args, &res.seq_res, 0);
699 trace_nfs4_llseek(inode, &args, &res, status);
705 if (whence == SEEK_DATA && res.sr_eof)
708 return vfs_setpos(filep, res.sr_offset, inode->i_sb->s_maxbytes);
759 &data->res.seq_res, task);
769 if (!nfs4_sequence_done(task, &data->res.seq_res))
857 .rpc_resp = &data->res,
873 nfs4_init_sequence(&data->args.seq_args, &data->res.seq_res, 0, 0);
929 &data->res.seq_res, task);
939 if (!nfs4_sequence_done(task, &data->res.seq_res))
1033 data->res.num_errors++;
1036 msg.rpc_resp = &data->res;
1039 nfs4_init_sequence(&data->args.seq_args, &data->res.seq_res, 0, 0);
1065 struct nfs42_clone_res res = {
1071 msg->rpc_resp = &res;
1088 res.dst_fattr = nfs_alloc_fattr();
1089 if (!res.dst_fattr)
1096 &args.seq_args, &res.seq_res, 0);
1100 if (count == 0 && res.dst_fattr->valid & NFS_ATTR_FATTR_SIZE)
1101 count = nfs_size_to_loff_t(res.dst_fattr->size) - dst_offset;
1103 status = nfs_post_op_update_inode(dst_inode, res.dst_fattr);
1106 kfree(res.dst_fattr);
1173 struct nfs42_removexattrres res;
1177 .rpc_resp = &res,
1183 &res.seq_res, 1);
1186 nfs4_update_changeattr(inode, &res.cinfo, timestamp, 0);
1205 struct nfs42_setxattrres res = {
1211 .rpc_resp = &res,
1219 res.fattr = nfs_alloc_fattr();
1220 if (!res.fattr)
1236 &res.seq_res, 1);
1243 nfs4_update_changeattr(inode, &res.cinfo, timestamp, 0);
1244 ret = nfs_post_op_update_inode(inode, res.fattr);
1248 kfree(res.fattr);
1261 struct nfs42_getxattrres res;
1265 .rpc_resp = &res,
1273 &res.seq_res, 0);
1288 nfs4_xattr_cache_add(inode, name, NULL, pages, res.xattr_len);
1291 if (res.xattr_len > buflen)
1293 _copy_from_pages(buf, pages, 0, res.xattr_len);
1296 return res.xattr_len;
1308 struct nfs42_listxattrsres res = {
1316 .rpc_resp = &res,
1323 res.scratch = alloc_page(GFP_KERNEL);
1324 if (!res.scratch)
1345 &res.seq_res, 0);
1349 ret = res.copied;
1350 *cookiep = res.cookie;
1351 *eofp = res.eof;
1361 __free_page(res.scratch);