Home
last modified time | relevance | path

Searched refs:resp (Results 1 – 25 of 40) sorted by relevance

12

/fs/nfsd/
Dnfs3proc.c45 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_getattr() local
50 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getattr()
51 resp->status = fh_verify(rqstp, &resp->fh, 0, in nfsd3_proc_getattr()
53 if (resp->status != nfs_ok) in nfsd3_proc_getattr()
56 resp->status = fh_getattr(&resp->fh, &resp->stat); in nfsd3_proc_getattr()
68 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_setattr() local
73 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setattr()
74 resp->status = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, in nfsd3_proc_setattr()
86 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfsd3_proc_lookup() local
93 fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_lookup()
[all …]
Dnfs2acl.c33 struct nfsd3_getaclres *resp = rqstp->rq_resp; in nfsacld_proc_getacl() local
40 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_getacl()
41 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsacld_proc_getacl()
42 if (resp->status != nfs_ok) in nfsacld_proc_getacl()
48 resp->status = nfserr_inval; in nfsacld_proc_getacl()
51 resp->mask = argp->mask; in nfsacld_proc_getacl()
53 resp->status = fh_getattr(fh, &resp->stat); in nfsacld_proc_getacl()
54 if (resp->status != nfs_ok) in nfsacld_proc_getacl()
57 if (resp->mask & (NFS_ACL|NFS_ACLCNT)) { in nfsacld_proc_getacl()
64 resp->status = nfserrno(PTR_ERR(acl)); in nfsacld_proc_getacl()
[all …]
Dnfsproc.c30 struct nfsd_attrstat *resp = rqstp->rq_resp; in nfsd_proc_getattr() local
34 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_getattr()
35 resp->status = fh_verify(rqstp, &resp->fh, 0, in nfsd_proc_getattr()
37 if (resp->status != nfs_ok) in nfsd_proc_getattr()
39 resp->status = fh_getattr(&resp->fh, &resp->stat); in nfsd_proc_getattr()
52 struct nfsd_attrstat *resp = rqstp->rq_resp; in nfsd_proc_setattr() local
60 fhp = fh_copy(&resp->fh, &argp->fh); in nfsd_proc_setattr()
86 resp->status = fh_verify(rqstp, fhp, 0, NFSD_MAY_NOP); in nfsd_proc_setattr()
87 if (resp->status != nfs_ok) in nfsd_proc_setattr()
103 resp->status = nfsd_setattr(rqstp, fhp, iap, 0, (time64_t)0); in nfsd_proc_setattr()
[all …]
Dnfs3acl.c31 struct nfsd3_getaclres *resp = rqstp->rq_resp; in nfsd3_proc_getacl() local
36 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getacl()
37 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsd3_proc_getacl()
38 if (resp->status != nfs_ok) in nfsd3_proc_getacl()
44 resp->status = nfserr_inval; in nfsd3_proc_getacl()
47 resp->mask = argp->mask; in nfsd3_proc_getacl()
49 if (resp->mask & (NFS_ACL|NFS_ACLCNT)) { in nfsd3_proc_getacl()
56 resp->status = nfserrno(PTR_ERR(acl)); in nfsd3_proc_getacl()
59 resp->acl_access = acl; in nfsd3_proc_getacl()
61 if (resp->mask & (NFS_DFACL|NFS_DFACLCNT)) { in nfsd3_proc_getacl()
[all …]
Dnfs3xdr.c655 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfs3svc_encode_attrstat() local
657 *p++ = resp->status; in nfs3svc_encode_attrstat()
658 if (resp->status == 0) { in nfs3svc_encode_attrstat()
659 lease_get_mtime(d_inode(resp->fh.fh_dentry), in nfs3svc_encode_attrstat()
660 &resp->stat.mtime); in nfs3svc_encode_attrstat()
661 p = encode_fattr3(rqstp, p, &resp->fh, &resp->stat); in nfs3svc_encode_attrstat()
670 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfs3svc_encode_wccstat() local
672 *p++ = resp->status; in nfs3svc_encode_wccstat()
673 p = encode_wcc_data(rqstp, p, &resp->fh); in nfs3svc_encode_wccstat()
681 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfs3svc_encode_diropres() local
[all …]
Dnfsxdr.c435 struct nfsd_stat *resp = rqstp->rq_resp; in nfssvc_encode_stat() local
437 *p++ = resp->status; in nfssvc_encode_stat()
444 struct nfsd_attrstat *resp = rqstp->rq_resp; in nfssvc_encode_attrstat() local
446 *p++ = resp->status; in nfssvc_encode_attrstat()
447 if (resp->status != nfs_ok) in nfssvc_encode_attrstat()
449 p = encode_fattr(rqstp, p, &resp->fh, &resp->stat); in nfssvc_encode_attrstat()
457 struct nfsd_diropres *resp = rqstp->rq_resp; in nfssvc_encode_diropres() local
459 *p++ = resp->status; in nfssvc_encode_diropres()
460 if (resp->status != nfs_ok) in nfssvc_encode_diropres()
462 p = encode_fh(p, &resp->fh); in nfssvc_encode_diropres()
[all …]
Dnfs4xdr.c2724 struct nfsd4_compoundres *resp = rqstp->rq_resp; in nfsd4_encode_fattr() local
2725 u32 minorversion = resp->cstate.minorversion; in nfsd4_encode_fattr()
3479 nfsd4_encode_access(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_access *access) in nfsd4_encode_access() argument
3481 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_access()
3492 static __be32 nfsd4_encode_bind_conn_to_session(struct nfsd4_compoundres *resp, __be32 nfserr, stru… in nfsd4_encode_bind_conn_to_session() argument
3494 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_bind_conn_to_session()
3509 nfsd4_encode_close(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_close *close) in nfsd4_encode_close() argument
3511 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_close()
3518 nfsd4_encode_commit(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_commit *commit) in nfsd4_encode_commit() argument
3520 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_commit()
[all …]
Dxdr4.h731 static inline bool nfsd4_is_solo_sequence(struct nfsd4_compoundres *resp) in nfsd4_is_solo_sequence() argument
733 struct nfsd4_compoundargs *args = resp->rqstp->rq_argp; in nfsd4_is_solo_sequence()
734 return resp->opcnt == 1 && args->ops[0].opnum == OP_SEQUENCE; in nfsd4_is_solo_sequence()
746 static inline bool nfsd4_cache_this(struct nfsd4_compoundres *resp) in nfsd4_cache_this() argument
748 return (resp->cstate.slot->sl_flags & NFSD4_SLOT_CACHETHIS) in nfsd4_cache_this()
749 || nfsd4_is_solo_sequence(resp); in nfsd4_cache_this()
754 struct nfsd4_compoundres *resp = rqstp->rq_resp; in nfsd4_last_compound_op() local
757 return argp->opcnt == resp->opcnt; in nfsd4_last_compound_op()
809 extern void nfsd4_sequence_done(struct nfsd4_compoundres *resp);
/fs/xfs/libxfs/
Dxfs_trans_resv.c838 struct xfs_trans_resv *resp) in xfs_trans_resv_calc() argument
844 resp->tr_write.tr_logres = xfs_calc_write_reservation(mp); in xfs_trans_resv_calc()
846 resp->tr_write.tr_logcount = XFS_WRITE_LOG_COUNT_REFLINK; in xfs_trans_resv_calc()
848 resp->tr_write.tr_logcount = XFS_WRITE_LOG_COUNT; in xfs_trans_resv_calc()
849 resp->tr_write.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_trans_resv_calc()
851 resp->tr_itruncate.tr_logres = xfs_calc_itruncate_reservation(mp); in xfs_trans_resv_calc()
853 resp->tr_itruncate.tr_logcount = in xfs_trans_resv_calc()
856 resp->tr_itruncate.tr_logcount = XFS_ITRUNCATE_LOG_COUNT; in xfs_trans_resv_calc()
857 resp->tr_itruncate.tr_logflags |= XFS_TRANS_PERM_LOG_RES; in xfs_trans_resv_calc()
859 resp->tr_rename.tr_logres = xfs_calc_rename_reservation(mp); in xfs_trans_resv_calc()
[all …]
Dxfs_log_rlimit.c49 struct xfs_trans_res *resp; in xfs_log_get_max_trans_res() local
56 resp = (struct xfs_trans_res *)M_RES(mp); in xfs_log_get_max_trans_res()
58 for (; resp < end_resp; resp++) { in xfs_log_get_max_trans_res()
59 int tmp = resp->tr_logcount > 1 ? in xfs_log_get_max_trans_res()
60 resp->tr_logres * resp->tr_logcount : in xfs_log_get_max_trans_res()
61 resp->tr_logres; in xfs_log_get_max_trans_res()
64 *max_resp = *resp; /* struct copy */ in xfs_log_get_max_trans_res()
/fs/lockd/
Dsvcproc.c112 __nlmsvc_proc_test(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlmsvc_proc_test() argument
120 resp->cookie = argp->cookie; in __nlmsvc_proc_test()
123 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_test()
124 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in __nlmsvc_proc_test()
127resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in __nlmsvc_proc_test()
128 if (resp->status == nlm_drop_reply) in __nlmsvc_proc_test()
132 ntohl(resp->status), rqstp->rq_vers); in __nlmsvc_proc_test()
147 __nlmsvc_proc_lock(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlmsvc_proc_lock() argument
156 resp->cookie = argp->cookie; in __nlmsvc_proc_lock()
159 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_lock()
[all …]
Dsvc4proc.c82 __nlm4svc_proc_test(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlm4svc_proc_test() argument
90 resp->cookie = argp->cookie; in __nlm4svc_proc_test()
93 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_test()
94 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in __nlm4svc_proc_test()
97 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in __nlm4svc_proc_test()
98 if (resp->status == nlm_drop_reply) in __nlm4svc_proc_test()
101 dprintk("lockd: TEST4 status %d\n", ntohl(resp->status)); in __nlm4svc_proc_test()
116 __nlm4svc_proc_lock(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlm4svc_proc_lock() argument
125 resp->cookie = argp->cookie; in __nlm4svc_proc_lock()
128 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_lock()
[all …]
Dxdr4.c140 nlm4_encode_testres(__be32 *p, struct nlm_res *resp) in nlm4_encode_testres() argument
144 dprintk("xdr: before encode_testres (p %p resp %p)\n", p, resp); in nlm4_encode_testres()
145 if (!(p = nlm4_encode_cookie(p, &resp->cookie))) in nlm4_encode_testres()
147 *p++ = resp->status; in nlm4_encode_testres()
149 if (resp->status == nlm_lck_denied) { in nlm4_encode_testres()
150 struct file_lock *fl = &resp->lock.fl; in nlm4_encode_testres()
153 *p++ = htonl(resp->lock.svid); in nlm4_encode_testres()
156 if (!(p = xdr_encode_netobj(p, &resp->lock.oh))) in nlm4_encode_testres()
168 resp->status, (int)resp->lock.svid, fl->fl_type, in nlm4_encode_testres()
172 dprintk("xdr: after encode_testres (p %p resp %p)\n", p, resp); in nlm4_encode_testres()
[all …]
Dxdr.c148 nlm_encode_testres(__be32 *p, struct nlm_res *resp) in nlm_encode_testres() argument
152 if (!(p = nlm_encode_cookie(p, &resp->cookie))) in nlm_encode_testres()
154 *p++ = resp->status; in nlm_encode_testres()
156 if (resp->status == nlm_lck_denied) { in nlm_encode_testres()
157 struct file_lock *fl = &resp->lock.fl; in nlm_encode_testres()
160 *p++ = htonl(resp->lock.svid); in nlm_encode_testres()
163 if (!(p = xdr_encode_netobj(p, &resp->lock.oh))) in nlm_encode_testres()
204 struct nlm_res *resp = rqstp->rq_resp; in nlmsvc_encode_testres() local
206 if (!(p = nlm_encode_testres(p, resp))) in nlmsvc_encode_testres()
285 struct nlm_res *resp = rqstp->rq_resp; in nlmsvc_encode_shareres() local
[all …]
Dprocfs.c54 char resp[3]; in nlm_end_grace_read() local
56 resp[0] = list_empty(&ln->lockd_manager.list) ? 'Y' : 'N'; in nlm_end_grace_read()
57 resp[1] = '\n'; in nlm_end_grace_read()
58 resp[2] = '\0'; in nlm_end_grace_read()
60 return simple_read_from_buffer(buf, size, pos, resp, sizeof(resp)); in nlm_end_grace_read()
Dclntproc.c266 struct nlm_res *resp = &req->a_res; in nlmclnt_call() local
269 .rpc_resp = resp, in nlmclnt_call()
306 if (resp->status == nlm_lck_denied_grace_period) { in nlmclnt_call()
319 ntohl(resp->status)); in nlmclnt_call()
517 struct nlm_res *resp = &req->a_res; in nlmclnt_lock() local
539 resp->status = nlm_lck_blocked; in nlmclnt_lock()
547 if (resp->status == nlm_lck_denied_grace_period) in nlmclnt_lock()
549 if (resp->status != nlm_lck_blocked) in nlmclnt_lock()
555 if (resp->status != nlm_lck_blocked) in nlmclnt_lock()
562 if (resp->status == nlm_lck_blocked) { in nlmclnt_lock()
[all …]
Dmon.c501 struct nsm_res *resp = data; in nsm_xdr_dec_stat_res() local
507 resp->status = be32_to_cpup(p++); in nsm_xdr_dec_stat_res()
508 resp->state = be32_to_cpup(p); in nsm_xdr_dec_stat_res()
511 __func__, resp->status, resp->state); in nsm_xdr_dec_stat_res()
519 struct nsm_res *resp = data; in nsm_xdr_dec_stat() local
525 resp->state = be32_to_cpup(p); in nsm_xdr_dec_stat()
527 dprintk("lockd: %s state %d\n", __func__, resp->state); in nsm_xdr_dec_stat()
/fs/orangefs/
Dsuper.c196 (long)new_op->downcall.resp.statfs.blocks_avail, in orangefs_statfs()
197 (long)new_op->downcall.resp.statfs.blocks_total, in orangefs_statfs()
198 (long)new_op->downcall.resp.statfs.block_size, in orangefs_statfs()
199 (long)new_op->downcall.resp.statfs.files_total, in orangefs_statfs()
200 (long)new_op->downcall.resp.statfs.files_avail); in orangefs_statfs()
204 buf->f_bsize = new_op->downcall.resp.statfs.block_size; in orangefs_statfs()
207 buf->f_blocks = (sector_t) new_op->downcall.resp.statfs.blocks_total; in orangefs_statfs()
208 buf->f_bfree = (sector_t) new_op->downcall.resp.statfs.blocks_avail; in orangefs_statfs()
209 buf->f_bavail = (sector_t) new_op->downcall.resp.statfs.blocks_avail; in orangefs_statfs()
210 buf->f_files = (sector_t) new_op->downcall.resp.statfs.files_total; in orangefs_statfs()
[all …]
Dxattr.c188 length = new_op->downcall.resp.getxattr.val_sz; in orangefs_inode_getxattr()
206 memcpy(buffer, new_op->downcall.resp.getxattr.val, length); in orangefs_inode_getxattr()
449 total = new_op->downcall.resp.listxattr.returned_count * in orangefs_listxattr()
454 returned_count = new_op->downcall.resp.listxattr.returned_count; in orangefs_listxattr()
468 if (new_op->downcall.resp.listxattr.lengths[i] < 0 || in orangefs_listxattr()
469 new_op->downcall.resp.listxattr.lengths[i] > in orangefs_listxattr()
473 new_op->downcall.resp.listxattr.lengths[i]); in orangefs_listxattr()
477 if (total + new_op->downcall.resp.listxattr.lengths[i] > size) in orangefs_listxattr()
485 if (is_reserved_key(new_op->downcall.resp.listxattr.key + in orangefs_listxattr()
487 new_op->downcall.resp. in orangefs_listxattr()
[all …]
Dorangefs-utils.c302 &new_op->downcall.resp.getattr.attributes, in orangefs_inode_getattr()
303 new_op->downcall.resp.getattr.link_target); in orangefs_inode_getattr()
311 downcall.resp.getattr.attributes.objtype); in orangefs_inode_getattr()
315 downcall.resp.getattr.attributes); in orangefs_inode_getattr()
318 downcall.resp.getattr.attributes.size; in orangefs_inode_getattr()
320 inode->i_blkbits = ffs(new_op->downcall.resp.getattr. in orangefs_inode_getattr()
337 downcall.resp.getattr.link_target); in orangefs_inode_getattr()
339 new_op->downcall.resp.getattr.link_target, in orangefs_inode_getattr()
357 downcall.resp.getattr.attributes.owner); in orangefs_inode_getattr()
359 downcall.resp.getattr.attributes.group); in orangefs_inode_getattr()
[all …]
Dnamei.c52 &new_op->downcall.resp.create.refn.khandle, in orangefs_create()
53 new_op->downcall.resp.create.refn.fs_id, in orangefs_create()
60 ref = new_op->downcall.resp.create.refn; in orangefs_create()
153 &new_op->downcall.resp.lookup.refn.khandle, in orangefs_lookup()
154 new_op->downcall.resp.lookup.refn.fs_id, in orangefs_lookup()
159 inode = orangefs_iget(dir->i_sb, &new_op->downcall.resp.lookup.refn); in orangefs_lookup()
257 &new_op->downcall.resp.sym.refn.khandle, in orangefs_symlink()
258 new_op->downcall.resp.sym.refn.fs_id, ret); in orangefs_symlink()
267 ref = new_op->downcall.resp.sym.refn; in orangefs_symlink()
331 &new_op->downcall.resp.mkdir.refn.khandle, in orangefs_mkdir()
[all …]
/fs/nfs/
Dcallback.h118 extern __be32 nfs4_callback_sequence(void *argp, void *resp,
139 extern __be32 nfs4_callback_recallany(void *argp, void *resp,
145 extern __be32 nfs4_callback_recallslot(void *argp, void *resp,
162 extern __be32 nfs4_callback_layoutrecall(void *argp, void *resp,
177 extern __be32 nfs4_callback_devicenotify(void *argp, void *resp,
186 extern __be32 nfs4_callback_notify_lock(void *argp, void *resp,
202 extern __be32 nfs4_callback_getattr(void *argp, void *resp,
204 extern __be32 nfs4_callback_recall(void *argp, void *resp,
Dread.c263 struct nfs_pgio_res *resp = &hdr->res; in nfs_readpage_retry() local
270 if (resp->count == 0) { in nfs_readpage_retry()
282 hdr->mds_offset += resp->count; in nfs_readpage_retry()
283 argp->offset += resp->count; in nfs_readpage_retry()
284 argp->pgbase += resp->count; in nfs_readpage_retry()
285 argp->count -= resp->count; in nfs_readpage_retry()
286 resp->count = 0; in nfs_readpage_retry()
287 resp->eof = 0; in nfs_readpage_retry()
Dcallback_proc.c23 __be32 nfs4_callback_getattr(void *argp, void *resp, in nfs4_callback_getattr() argument
27 struct cb_getattrres *res = resp; in nfs4_callback_getattr()
73 __be32 nfs4_callback_recall(void *argp, void *resp, in nfs4_callback_recall() argument
331 __be32 nfs4_callback_layoutrecall(void *argp, void *resp, in nfs4_callback_layoutrecall() argument
353 __be32 nfs4_callback_devicenotify(void *argp, void *resp, in nfs4_callback_devicenotify() argument
483 __be32 nfs4_callback_sequence(void *argp, void *resp, in nfs4_callback_sequence() argument
487 struct cb_sequenceres *res = resp; in nfs4_callback_sequence()
587 __be32 nfs4_callback_recallany(void *argp, void *resp, in nfs4_callback_recallany() argument
634 __be32 nfs4_callback_recallslot(void *argp, void *resp, in nfs4_callback_recallslot() argument
660 __be32 nfs4_callback_notify_lock(void *argp, void *resp, in nfs4_callback_notify_lock() argument
/fs/xfs/
Dxfs_trans.c150 struct xfs_trans_res *resp, in xfs_trans_reserve() argument
173 if (resp->tr_logres > 0) { in xfs_trans_reserve()
177 tp->t_log_res == resp->tr_logres); in xfs_trans_reserve()
179 tp->t_log_count == resp->tr_logcount); in xfs_trans_reserve()
181 if (resp->tr_logflags & XFS_TRANS_PERM_LOG_RES) { in xfs_trans_reserve()
190 ASSERT(resp->tr_logflags & XFS_TRANS_PERM_LOG_RES); in xfs_trans_reserve()
194 resp->tr_logres, in xfs_trans_reserve()
195 resp->tr_logcount, in xfs_trans_reserve()
203 tp->t_log_res = resp->tr_logres; in xfs_trans_reserve()
204 tp->t_log_count = resp->tr_logcount; in xfs_trans_reserve()
[all …]

12