Lines Matching refs:rqstp
40 static int nfsd_cache_append(struct svc_rqst *rqstp, struct kvec *vec);
94 nfsd_reply_cache_alloc(struct svc_rqst *rqstp, __wsum csum, in nfsd_reply_cache_alloc() argument
107 rp->c_key.k_xid = rqstp->rq_xid; in nfsd_reply_cache_alloc()
108 rp->c_key.k_proc = rqstp->rq_proc; in nfsd_reply_cache_alloc()
109 rpc_copy_addr((struct sockaddr *)&rp->c_key.k_addr, svc_addr(rqstp)); in nfsd_reply_cache_alloc()
110 rpc_set_port((struct sockaddr *)&rp->c_key.k_addr, rpc_get_port(svc_addr(rqstp))); in nfsd_reply_cache_alloc()
111 rp->c_key.k_prot = rqstp->rq_prot; in nfsd_reply_cache_alloc()
112 rp->c_key.k_vers = rqstp->rq_vers; in nfsd_reply_cache_alloc()
113 rp->c_key.k_len = rqstp->rq_arg.len; in nfsd_reply_cache_alloc()
309 nfsd_cache_csum(struct svc_rqst *rqstp) in nfsd_cache_csum() argument
314 struct xdr_buf *buf = &rqstp->rq_arg; in nfsd_cache_csum()
414 int nfsd_cache_lookup(struct svc_rqst *rqstp) in nfsd_cache_lookup() argument
416 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd_cache_lookup()
418 __be32 xid = rqstp->rq_xid; in nfsd_cache_lookup()
422 int type = rqstp->rq_cachetype; in nfsd_cache_lookup()
425 rqstp->rq_cacherep = NULL; in nfsd_cache_lookup()
431 csum = nfsd_cache_csum(rqstp); in nfsd_cache_lookup()
437 rp = nfsd_reply_cache_alloc(rqstp, csum, nn); in nfsd_cache_lookup()
450 rqstp->rq_cacherep = rp; in nfsd_cache_lookup()
476 if (!test_bit(RQ_SECURE, &rqstp->rq_flags) && rp->c_secure) in nfsd_cache_lookup()
484 svc_putu32(&rqstp->rq_res.head[0], rp->c_replstat); in nfsd_cache_lookup()
488 if (!nfsd_cache_append(rqstp, &rp->c_replvec)) in nfsd_cache_lookup()
497 trace_nfsd_drc_found(nn, rqstp, rtn); in nfsd_cache_lookup()
521 void nfsd_cache_update(struct svc_rqst *rqstp, int cachetype, __be32 *statp) in nfsd_cache_update() argument
523 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd_cache_update()
524 struct svc_cacherep *rp = rqstp->rq_cacherep; in nfsd_cache_update()
525 struct kvec *resv = &rqstp->rq_res.head[0], *cachv; in nfsd_cache_update()
570 rp->c_secure = test_bit(RQ_SECURE, &rqstp->rq_flags); in nfsd_cache_update()
583 nfsd_cache_append(struct svc_rqst *rqstp, struct kvec *data) in nfsd_cache_append() argument
585 struct kvec *vec = &rqstp->rq_res.head[0]; in nfsd_cache_append()