rqstp 328 fs/lockd/host.c struct nlm_host *nlmsvc_lookup_host(const struct svc_rqst *rqstp, rqstp 335 fs/lockd/host.c struct sockaddr *src_sap = svc_daddr(rqstp); rqstp 336 fs/lockd/host.c size_t src_len = rqstp->rq_daddrlen; rqstp 337 fs/lockd/host.c struct net *net = SVC_NET(rqstp); rqstp 340 fs/lockd/host.c .sap = svc_addr(rqstp), rqstp 341 fs/lockd/host.c .salen = rqstp->rq_addrlen, rqstp 342 fs/lockd/host.c .protocol = rqstp->rq_prot, rqstp 343 fs/lockd/host.c .version = rqstp->rq_vers, rqstp 351 fs/lockd/host.c (int)hostname_len, hostname, rqstp->rq_vers, rqstp 352 fs/lockd/host.c (rqstp->rq_prot == IPPROTO_UDP ? "udp" : "tcp")); rqstp 494 fs/lockd/mon.c static int nsm_xdr_dec_stat_res(struct rpc_rqst *rqstp, rqstp 512 fs/lockd/mon.c static int nsm_xdr_dec_stat(struct rpc_rqst *rqstp, rqstp 138 fs/lockd/svc.c struct svc_rqst *rqstp = vrqstp; rqstp 159 fs/lockd/svc.c rqstp->rq_server->sv_maxconn = nlm_max_connections; rqstp 173 fs/lockd/svc.c err = svc_recv(rqstp, timeout); rqstp 177 fs/lockd/svc.c svc_print_addr(rqstp, buf, sizeof(buf))); rqstp 179 fs/lockd/svc.c svc_process(rqstp); rqstp 646 fs/lockd/svc.c static int lockd_authenticate(struct svc_rqst *rqstp) rqstp 648 fs/lockd/svc.c rqstp->rq_client = NULL; rqstp 649 fs/lockd/svc.c switch (rqstp->rq_authop->flavour) { rqstp 652 fs/lockd/svc.c if (rqstp->rq_proc == 0) rqstp 654 fs/lockd/svc.c if (is_callback(rqstp->rq_proc)) { rqstp 660 fs/lockd/svc.c return svc_set_client(rqstp); rqstp 23 fs/lockd/svc4proc.c nlm4svc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, rqstp 36 fs/lockd/svc4proc.c if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) rqstp 43 fs/lockd/svc4proc.c if ((error = nlm_lookup_file(rqstp, &file, &lock->fh)) != 0) rqstp 72 fs/lockd/svc4proc.c nlm4svc_proc_null(struct svc_rqst *rqstp) rqstp 82 fs/lockd/svc4proc.c __nlm4svc_proc_test(struct svc_rqst *rqstp, struct nlm_res *resp) rqstp 84 fs/lockd/svc4proc.c struct nlm_args *argp = rqstp->rq_argp; rqstp 93 fs/lockd/svc4proc.c if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) rqstp 97 fs/lockd/svc4proc.c resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); rqstp 110 fs/lockd/svc4proc.c nlm4svc_proc_test(struct svc_rqst *rqstp) rqstp 112 fs/lockd/svc4proc.c return __nlm4svc_proc_test(rqstp, rqstp->rq_resp); rqstp 116 fs/lockd/svc4proc.c __nlm4svc_proc_lock(struct svc_rqst *rqstp, struct nlm_res *resp) rqstp 118 fs/lockd/svc4proc.c struct nlm_args *argp = rqstp->rq_argp; rqstp 128 fs/lockd/svc4proc.c if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) rqstp 144 fs/lockd/svc4proc.c resp->status = nlmsvc_lock(rqstp, file, host, &argp->lock, rqstp 159 fs/lockd/svc4proc.c nlm4svc_proc_lock(struct svc_rqst *rqstp) rqstp 161 fs/lockd/svc4proc.c return __nlm4svc_proc_lock(rqstp, rqstp->rq_resp); rqstp 165 fs/lockd/svc4proc.c __nlm4svc_proc_cancel(struct svc_rqst *rqstp, struct nlm_res *resp) rqstp 167 fs/lockd/svc4proc.c struct nlm_args *argp = rqstp->rq_argp; rqstp 176 fs/lockd/svc4proc.c if (locks_in_grace(SVC_NET(rqstp))) { rqstp 182 fs/lockd/svc4proc.c if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) rqstp 186 fs/lockd/svc4proc.c resp->status = nlmsvc_cancel_blocked(SVC_NET(rqstp), file, &argp->lock); rqstp 196 fs/lockd/svc4proc.c nlm4svc_proc_cancel(struct svc_rqst *rqstp) rqstp 198 fs/lockd/svc4proc.c return __nlm4svc_proc_cancel(rqstp, rqstp->rq_resp); rqstp 205 fs/lockd/svc4proc.c __nlm4svc_proc_unlock(struct svc_rqst *rqstp, struct nlm_res *resp) rqstp 207 fs/lockd/svc4proc.c struct nlm_args *argp = rqstp->rq_argp; rqstp 216 fs/lockd/svc4proc.c if (locks_in_grace(SVC_NET(rqstp))) { rqstp 222 fs/lockd/svc4proc.c if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) rqstp 226 fs/lockd/svc4proc.c resp->status = nlmsvc_unlock(SVC_NET(rqstp), file, &argp->lock); rqstp 236 fs/lockd/svc4proc.c nlm4svc_proc_unlock(struct svc_rqst *rqstp) rqstp 238 fs/lockd/svc4proc.c return __nlm4svc_proc_unlock(rqstp, rqstp->rq_resp); rqstp 246 fs/lockd/svc4proc.c __nlm4svc_proc_granted(struct svc_rqst *rqstp, struct nlm_res *resp) rqstp 248 fs/lockd/svc4proc.c struct nlm_args *argp = rqstp->rq_argp; rqstp 253 fs/lockd/svc4proc.c resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock); rqstp 259 fs/lockd/svc4proc.c nlm4svc_proc_granted(struct svc_rqst *rqstp) rqstp 261 fs/lockd/svc4proc.c return __nlm4svc_proc_granted(rqstp, rqstp->rq_resp); rqstp 288 fs/lockd/svc4proc.c static __be32 nlm4svc_callback(struct svc_rqst *rqstp, u32 proc, rqstp 291 fs/lockd/svc4proc.c struct nlm_args *argp = rqstp->rq_argp; rqstp 296 fs/lockd/svc4proc.c host = nlmsvc_lookup_host(rqstp, rqstp 307 fs/lockd/svc4proc.c stat = func(rqstp, &call->a_res); rqstp 319 fs/lockd/svc4proc.c static __be32 nlm4svc_proc_test_msg(struct svc_rqst *rqstp) rqstp 322 fs/lockd/svc4proc.c return nlm4svc_callback(rqstp, NLMPROC_TEST_RES, __nlm4svc_proc_test); rqstp 325 fs/lockd/svc4proc.c static __be32 nlm4svc_proc_lock_msg(struct svc_rqst *rqstp) rqstp 328 fs/lockd/svc4proc.c return nlm4svc_callback(rqstp, NLMPROC_LOCK_RES, __nlm4svc_proc_lock); rqstp 331 fs/lockd/svc4proc.c static __be32 nlm4svc_proc_cancel_msg(struct svc_rqst *rqstp) rqstp 334 fs/lockd/svc4proc.c return nlm4svc_callback(rqstp, NLMPROC_CANCEL_RES, __nlm4svc_proc_cancel); rqstp 337 fs/lockd/svc4proc.c static __be32 nlm4svc_proc_unlock_msg(struct svc_rqst *rqstp) rqstp 340 fs/lockd/svc4proc.c return nlm4svc_callback(rqstp, NLMPROC_UNLOCK_RES, __nlm4svc_proc_unlock); rqstp 343 fs/lockd/svc4proc.c static __be32 nlm4svc_proc_granted_msg(struct svc_rqst *rqstp) rqstp 346 fs/lockd/svc4proc.c return nlm4svc_callback(rqstp, NLMPROC_GRANTED_RES, __nlm4svc_proc_granted); rqstp 353 fs/lockd/svc4proc.c nlm4svc_proc_share(struct svc_rqst *rqstp) rqstp 355 fs/lockd/svc4proc.c struct nlm_args *argp = rqstp->rq_argp; rqstp 356 fs/lockd/svc4proc.c struct nlm_res *resp = rqstp->rq_resp; rqstp 365 fs/lockd/svc4proc.c if (locks_in_grace(SVC_NET(rqstp)) && !argp->reclaim) { rqstp 371 fs/lockd/svc4proc.c if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) rqstp 388 fs/lockd/svc4proc.c nlm4svc_proc_unshare(struct svc_rqst *rqstp) rqstp 390 fs/lockd/svc4proc.c struct nlm_args *argp = rqstp->rq_argp; rqstp 391 fs/lockd/svc4proc.c struct nlm_res *resp = rqstp->rq_resp; rqstp 400 fs/lockd/svc4proc.c if (locks_in_grace(SVC_NET(rqstp))) { rqstp 406 fs/lockd/svc4proc.c if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) rqstp 423 fs/lockd/svc4proc.c nlm4svc_proc_nm_lock(struct svc_rqst *rqstp) rqstp 425 fs/lockd/svc4proc.c struct nlm_args *argp = rqstp->rq_argp; rqstp 430 fs/lockd/svc4proc.c return nlm4svc_proc_lock(rqstp); rqstp 437 fs/lockd/svc4proc.c nlm4svc_proc_free_all(struct svc_rqst *rqstp) rqstp 439 fs/lockd/svc4proc.c struct nlm_args *argp = rqstp->rq_argp; rqstp 443 fs/lockd/svc4proc.c if (nlm4svc_retrieve_args(rqstp, argp, &host, NULL)) rqstp 455 fs/lockd/svc4proc.c nlm4svc_proc_sm_notify(struct svc_rqst *rqstp) rqstp 457 fs/lockd/svc4proc.c struct nlm_reboot *argp = rqstp->rq_argp; rqstp 461 fs/lockd/svc4proc.c if (!nlm_privileged_requester(rqstp)) { rqstp 464 fs/lockd/svc4proc.c svc_print_addr(rqstp, buf, sizeof(buf))); rqstp 468 fs/lockd/svc4proc.c nlm_host_rebooted(SVC_NET(rqstp), argp); rqstp 476 fs/lockd/svc4proc.c nlm4svc_proc_granted_res(struct svc_rqst *rqstp) rqstp 478 fs/lockd/svc4proc.c struct nlm_res *argp = rqstp->rq_argp; rqstp 216 fs/lockd/svclock.c nlmsvc_create_block(struct svc_rqst *rqstp, struct nlm_host *host, rqstp 246 fs/lockd/svclock.c block->b_daemon = rqstp->rq_server; rqstp 460 fs/lockd/svclock.c nlmsvc_defer_lock_rqst(struct svc_rqst *rqstp, struct nlm_block *block) rqstp 468 fs/lockd/svclock.c block->b_cache_req = &rqstp->rq_chandle; rqstp 469 fs/lockd/svclock.c if (rqstp->rq_chandle.defer) { rqstp 471 fs/lockd/svclock.c rqstp->rq_chandle.defer(block->b_cache_req); rqstp 486 fs/lockd/svclock.c nlmsvc_lock(struct svc_rqst *rqstp, struct nlm_file *file, rqstp 509 fs/lockd/svclock.c block = nlmsvc_create_block(rqstp, host, file, lock, cookie); rqstp 534 fs/lockd/svclock.c if (locks_in_grace(SVC_NET(rqstp)) && !reclaim) { rqstp 538 fs/lockd/svclock.c if (reclaim && !locks_in_grace(SVC_NET(rqstp))) { rqstp 568 fs/lockd/svclock.c ret = nlmsvc_defer_lock_rqst(rqstp, block); rqstp 593 fs/lockd/svclock.c nlmsvc_testlock(struct svc_rqst *rqstp, struct nlm_file *file, rqstp 608 fs/lockd/svclock.c if (locks_in_grace(SVC_NET(rqstp))) { rqstp 43 fs/lockd/svcproc.c #define cast_status(status) (cast_to_nlm(status, rqstp->rq_vers)) rqstp 52 fs/lockd/svcproc.c nlmsvc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, rqstp 65 fs/lockd/svcproc.c if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) rqstp 72 fs/lockd/svcproc.c error = cast_status(nlm_lookup_file(rqstp, &file, &lock->fh)); rqstp 102 fs/lockd/svcproc.c nlmsvc_proc_null(struct svc_rqst *rqstp) rqstp 112 fs/lockd/svcproc.c __nlmsvc_proc_test(struct svc_rqst *rqstp, struct nlm_res *resp) rqstp 114 fs/lockd/svcproc.c struct nlm_args *argp = rqstp->rq_argp; rqstp 123 fs/lockd/svcproc.c if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) rqstp 127 fs/lockd/svcproc.c resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie)); rqstp 132 fs/lockd/svcproc.c ntohl(resp->status), rqstp->rq_vers); rqstp 141 fs/lockd/svcproc.c nlmsvc_proc_test(struct svc_rqst *rqstp) rqstp 143 fs/lockd/svcproc.c return __nlmsvc_proc_test(rqstp, rqstp->rq_resp); rqstp 147 fs/lockd/svcproc.c __nlmsvc_proc_lock(struct svc_rqst *rqstp, struct nlm_res *resp) rqstp 149 fs/lockd/svcproc.c struct nlm_args *argp = rqstp->rq_argp; rqstp 159 fs/lockd/svcproc.c if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) rqstp 175 fs/lockd/svcproc.c resp->status = cast_status(nlmsvc_lock(rqstp, file, host, &argp->lock, rqstp 190 fs/lockd/svcproc.c nlmsvc_proc_lock(struct svc_rqst *rqstp) rqstp 192 fs/lockd/svcproc.c return __nlmsvc_proc_lock(rqstp, rqstp->rq_resp); rqstp 196 fs/lockd/svcproc.c __nlmsvc_proc_cancel(struct svc_rqst *rqstp, struct nlm_res *resp) rqstp 198 fs/lockd/svcproc.c struct nlm_args *argp = rqstp->rq_argp; rqstp 201 fs/lockd/svcproc.c struct net *net = SVC_NET(rqstp); rqstp 214 fs/lockd/svcproc.c if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) rqstp 228 fs/lockd/svcproc.c nlmsvc_proc_cancel(struct svc_rqst *rqstp) rqstp 230 fs/lockd/svcproc.c return __nlmsvc_proc_cancel(rqstp, rqstp->rq_resp); rqstp 237 fs/lockd/svcproc.c __nlmsvc_proc_unlock(struct svc_rqst *rqstp, struct nlm_res *resp) rqstp 239 fs/lockd/svcproc.c struct nlm_args *argp = rqstp->rq_argp; rqstp 242 fs/lockd/svcproc.c struct net *net = SVC_NET(rqstp); rqstp 255 fs/lockd/svcproc.c if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) rqstp 269 fs/lockd/svcproc.c nlmsvc_proc_unlock(struct svc_rqst *rqstp) rqstp 271 fs/lockd/svcproc.c return __nlmsvc_proc_unlock(rqstp, rqstp->rq_resp); rqstp 279 fs/lockd/svcproc.c __nlmsvc_proc_granted(struct svc_rqst *rqstp, struct nlm_res *resp) rqstp 281 fs/lockd/svcproc.c struct nlm_args *argp = rqstp->rq_argp; rqstp 286 fs/lockd/svcproc.c resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock); rqstp 292 fs/lockd/svcproc.c nlmsvc_proc_granted(struct svc_rqst *rqstp) rqstp 294 fs/lockd/svcproc.c return __nlmsvc_proc_granted(rqstp, rqstp->rq_resp); rqstp 329 fs/lockd/svcproc.c static __be32 nlmsvc_callback(struct svc_rqst *rqstp, u32 proc, rqstp 332 fs/lockd/svcproc.c struct nlm_args *argp = rqstp->rq_argp; rqstp 337 fs/lockd/svcproc.c host = nlmsvc_lookup_host(rqstp, rqstp 348 fs/lockd/svcproc.c stat = func(rqstp, &call->a_res); rqstp 360 fs/lockd/svcproc.c static __be32 nlmsvc_proc_test_msg(struct svc_rqst *rqstp) rqstp 363 fs/lockd/svcproc.c return nlmsvc_callback(rqstp, NLMPROC_TEST_RES, __nlmsvc_proc_test); rqstp 366 fs/lockd/svcproc.c static __be32 nlmsvc_proc_lock_msg(struct svc_rqst *rqstp) rqstp 369 fs/lockd/svcproc.c return nlmsvc_callback(rqstp, NLMPROC_LOCK_RES, __nlmsvc_proc_lock); rqstp 372 fs/lockd/svcproc.c static __be32 nlmsvc_proc_cancel_msg(struct svc_rqst *rqstp) rqstp 375 fs/lockd/svcproc.c return nlmsvc_callback(rqstp, NLMPROC_CANCEL_RES, __nlmsvc_proc_cancel); rqstp 379 fs/lockd/svcproc.c nlmsvc_proc_unlock_msg(struct svc_rqst *rqstp) rqstp 382 fs/lockd/svcproc.c return nlmsvc_callback(rqstp, NLMPROC_UNLOCK_RES, __nlmsvc_proc_unlock); rqstp 386 fs/lockd/svcproc.c nlmsvc_proc_granted_msg(struct svc_rqst *rqstp) rqstp 389 fs/lockd/svcproc.c return nlmsvc_callback(rqstp, NLMPROC_GRANTED_RES, __nlmsvc_proc_granted); rqstp 396 fs/lockd/svcproc.c nlmsvc_proc_share(struct svc_rqst *rqstp) rqstp 398 fs/lockd/svcproc.c struct nlm_args *argp = rqstp->rq_argp; rqstp 399 fs/lockd/svcproc.c struct nlm_res *resp = rqstp->rq_resp; rqstp 408 fs/lockd/svcproc.c if (locks_in_grace(SVC_NET(rqstp)) && !argp->reclaim) { rqstp 414 fs/lockd/svcproc.c if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) rqstp 431 fs/lockd/svcproc.c nlmsvc_proc_unshare(struct svc_rqst *rqstp) rqstp 433 fs/lockd/svcproc.c struct nlm_args *argp = rqstp->rq_argp; rqstp 434 fs/lockd/svcproc.c struct nlm_res *resp = rqstp->rq_resp; rqstp 443 fs/lockd/svcproc.c if (locks_in_grace(SVC_NET(rqstp))) { rqstp 449 fs/lockd/svcproc.c if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) rqstp 466 fs/lockd/svcproc.c nlmsvc_proc_nm_lock(struct svc_rqst *rqstp) rqstp 468 fs/lockd/svcproc.c struct nlm_args *argp = rqstp->rq_argp; rqstp 473 fs/lockd/svcproc.c return nlmsvc_proc_lock(rqstp); rqstp 480 fs/lockd/svcproc.c nlmsvc_proc_free_all(struct svc_rqst *rqstp) rqstp 482 fs/lockd/svcproc.c struct nlm_args *argp = rqstp->rq_argp; rqstp 486 fs/lockd/svcproc.c if (nlmsvc_retrieve_args(rqstp, argp, &host, NULL)) rqstp 498 fs/lockd/svcproc.c nlmsvc_proc_sm_notify(struct svc_rqst *rqstp) rqstp 500 fs/lockd/svcproc.c struct nlm_reboot *argp = rqstp->rq_argp; rqstp 504 fs/lockd/svcproc.c if (!nlm_privileged_requester(rqstp)) { rqstp 507 fs/lockd/svcproc.c svc_print_addr(rqstp, buf, sizeof(buf))); rqstp 511 fs/lockd/svcproc.c nlm_host_rebooted(SVC_NET(rqstp), argp); rqstp 519 fs/lockd/svcproc.c nlmsvc_proc_granted_res(struct svc_rqst *rqstp) rqstp 521 fs/lockd/svcproc.c struct nlm_res *argp = rqstp->rq_argp; rqstp 84 fs/lockd/svcsubs.c nlm_lookup_file(struct svc_rqst *rqstp, struct nlm_file **result, rqstp 120 fs/lockd/svcsubs.c if ((nfserr = nlmsvc_ops->fopen(rqstp, f, &file->f_file)) != 0) { rqstp 184 fs/lockd/xdr.c nlmsvc_decode_testargs(struct svc_rqst *rqstp, __be32 *p) rqstp 186 fs/lockd/xdr.c struct nlm_args *argp = rqstp->rq_argp; rqstp 198 fs/lockd/xdr.c return xdr_argsize_check(rqstp, p); rqstp 202 fs/lockd/xdr.c nlmsvc_encode_testres(struct svc_rqst *rqstp, __be32 *p) rqstp 204 fs/lockd/xdr.c struct nlm_res *resp = rqstp->rq_resp; rqstp 208 fs/lockd/xdr.c return xdr_ressize_check(rqstp, p); rqstp 212 fs/lockd/xdr.c nlmsvc_decode_lockargs(struct svc_rqst *rqstp, __be32 *p) rqstp 214 fs/lockd/xdr.c struct nlm_args *argp = rqstp->rq_argp; rqstp 229 fs/lockd/xdr.c return xdr_argsize_check(rqstp, p); rqstp 233 fs/lockd/xdr.c nlmsvc_decode_cancargs(struct svc_rqst *rqstp, __be32 *p) rqstp 235 fs/lockd/xdr.c struct nlm_args *argp = rqstp->rq_argp; rqstp 246 fs/lockd/xdr.c return xdr_argsize_check(rqstp, p); rqstp 250 fs/lockd/xdr.c nlmsvc_decode_unlockargs(struct svc_rqst *rqstp, __be32 *p) rqstp 252 fs/lockd/xdr.c struct nlm_args *argp = rqstp->rq_argp; rqstp 258 fs/lockd/xdr.c return xdr_argsize_check(rqstp, p); rqstp 262 fs/lockd/xdr.c nlmsvc_decode_shareargs(struct svc_rqst *rqstp, __be32 *p) rqstp 264 fs/lockd/xdr.c struct nlm_args *argp = rqstp->rq_argp; rqstp 279 fs/lockd/xdr.c return xdr_argsize_check(rqstp, p); rqstp 283 fs/lockd/xdr.c nlmsvc_encode_shareres(struct svc_rqst *rqstp, __be32 *p) rqstp 285 fs/lockd/xdr.c struct nlm_res *resp = rqstp->rq_resp; rqstp 291 fs/lockd/xdr.c return xdr_ressize_check(rqstp, p); rqstp 295 fs/lockd/xdr.c nlmsvc_encode_res(struct svc_rqst *rqstp, __be32 *p) rqstp 297 fs/lockd/xdr.c struct nlm_res *resp = rqstp->rq_resp; rqstp 302 fs/lockd/xdr.c return xdr_ressize_check(rqstp, p); rqstp 306 fs/lockd/xdr.c nlmsvc_decode_notify(struct svc_rqst *rqstp, __be32 *p) rqstp 308 fs/lockd/xdr.c struct nlm_args *argp = rqstp->rq_argp; rqstp 315 fs/lockd/xdr.c return xdr_argsize_check(rqstp, p); rqstp 319 fs/lockd/xdr.c nlmsvc_decode_reboot(struct svc_rqst *rqstp, __be32 *p) rqstp 321 fs/lockd/xdr.c struct nlm_reboot *argp = rqstp->rq_argp; rqstp 328 fs/lockd/xdr.c return xdr_argsize_check(rqstp, p); rqstp 332 fs/lockd/xdr.c nlmsvc_decode_res(struct svc_rqst *rqstp, __be32 *p) rqstp 334 fs/lockd/xdr.c struct nlm_res *resp = rqstp->rq_argp; rqstp 339 fs/lockd/xdr.c return xdr_argsize_check(rqstp, p); rqstp 343 fs/lockd/xdr.c nlmsvc_decode_void(struct svc_rqst *rqstp, __be32 *p) rqstp 345 fs/lockd/xdr.c return xdr_argsize_check(rqstp, p); rqstp 349 fs/lockd/xdr.c nlmsvc_encode_void(struct svc_rqst *rqstp, __be32 *p) rqstp 351 fs/lockd/xdr.c return xdr_ressize_check(rqstp, p); rqstp 181 fs/lockd/xdr4.c nlm4svc_decode_testargs(struct svc_rqst *rqstp, __be32 *p) rqstp 183 fs/lockd/xdr4.c struct nlm_args *argp = rqstp->rq_argp; rqstp 195 fs/lockd/xdr4.c return xdr_argsize_check(rqstp, p); rqstp 199 fs/lockd/xdr4.c nlm4svc_encode_testres(struct svc_rqst *rqstp, __be32 *p) rqstp 201 fs/lockd/xdr4.c struct nlm_res *resp = rqstp->rq_resp; rqstp 205 fs/lockd/xdr4.c return xdr_ressize_check(rqstp, p); rqstp 209 fs/lockd/xdr4.c nlm4svc_decode_lockargs(struct svc_rqst *rqstp, __be32 *p) rqstp 211 fs/lockd/xdr4.c struct nlm_args *argp = rqstp->rq_argp; rqstp 226 fs/lockd/xdr4.c return xdr_argsize_check(rqstp, p); rqstp 230 fs/lockd/xdr4.c nlm4svc_decode_cancargs(struct svc_rqst *rqstp, __be32 *p) rqstp 232 fs/lockd/xdr4.c struct nlm_args *argp = rqstp->rq_argp; rqstp 243 fs/lockd/xdr4.c return xdr_argsize_check(rqstp, p); rqstp 247 fs/lockd/xdr4.c nlm4svc_decode_unlockargs(struct svc_rqst *rqstp, __be32 *p) rqstp 249 fs/lockd/xdr4.c struct nlm_args *argp = rqstp->rq_argp; rqstp 255 fs/lockd/xdr4.c return xdr_argsize_check(rqstp, p); rqstp 259 fs/lockd/xdr4.c nlm4svc_decode_shareargs(struct svc_rqst *rqstp, __be32 *p) rqstp 261 fs/lockd/xdr4.c struct nlm_args *argp = rqstp->rq_argp; rqstp 276 fs/lockd/xdr4.c return xdr_argsize_check(rqstp, p); rqstp 280 fs/lockd/xdr4.c nlm4svc_encode_shareres(struct svc_rqst *rqstp, __be32 *p) rqstp 282 fs/lockd/xdr4.c struct nlm_res *resp = rqstp->rq_resp; rqstp 288 fs/lockd/xdr4.c return xdr_ressize_check(rqstp, p); rqstp 292 fs/lockd/xdr4.c nlm4svc_encode_res(struct svc_rqst *rqstp, __be32 *p) rqstp 294 fs/lockd/xdr4.c struct nlm_res *resp = rqstp->rq_resp; rqstp 299 fs/lockd/xdr4.c return xdr_ressize_check(rqstp, p); rqstp 303 fs/lockd/xdr4.c nlm4svc_decode_notify(struct svc_rqst *rqstp, __be32 *p) rqstp 305 fs/lockd/xdr4.c struct nlm_args *argp = rqstp->rq_argp; rqstp 312 fs/lockd/xdr4.c return xdr_argsize_check(rqstp, p); rqstp 316 fs/lockd/xdr4.c nlm4svc_decode_reboot(struct svc_rqst *rqstp, __be32 *p) rqstp 318 fs/lockd/xdr4.c struct nlm_reboot *argp = rqstp->rq_argp; rqstp 325 fs/lockd/xdr4.c return xdr_argsize_check(rqstp, p); rqstp 329 fs/lockd/xdr4.c nlm4svc_decode_res(struct svc_rqst *rqstp, __be32 *p) rqstp 331 fs/lockd/xdr4.c struct nlm_res *resp = rqstp->rq_argp; rqstp 336 fs/lockd/xdr4.c return xdr_argsize_check(rqstp, p); rqstp 340 fs/lockd/xdr4.c nlm4svc_decode_void(struct svc_rqst *rqstp, __be32 *p) rqstp 342 fs/lockd/xdr4.c return xdr_argsize_check(rqstp, p); rqstp 346 fs/lockd/xdr4.c nlm4svc_encode_void(struct svc_rqst *rqstp, __be32 *p) rqstp 348 fs/lockd/xdr4.c return xdr_ressize_check(rqstp, p); rqstp 79 fs/nfs/callback.c struct svc_rqst *rqstp = vrqstp; rqstp 90 fs/nfs/callback.c err = svc_recv(rqstp, MAX_SCHEDULE_TIMEOUT); rqstp 93 fs/nfs/callback.c svc_process(rqstp); rqstp 95 fs/nfs/callback.c svc_exit_thread(rqstp); rqstp 107 fs/nfs/callback.c struct svc_rqst *rqstp = vrqstp; rqstp 108 fs/nfs/callback.c struct svc_serv *serv = rqstp->rq_server; rqstp 129 fs/nfs/callback.c error = bc_svc_process(serv, req, rqstp); rqstp 139 fs/nfs/callback.c svc_exit_thread(rqstp); rqstp 382 fs/nfs/callback.c check_gss_callback_principal(struct nfs_client *clp, struct svc_rqst *rqstp) rqstp 384 fs/nfs/callback.c char *p = rqstp->rq_cred.cr_principal; rqstp 386 fs/nfs/callback.c if (rqstp->rq_authop->flavour != RPC_AUTH_GSS) rqstp 430 fs/nfs/callback.c static int nfs_callback_authenticate(struct svc_rqst *rqstp) rqstp 432 fs/nfs/callback.c switch (rqstp->rq_authop->flavour) { rqstp 434 fs/nfs/callback.c if (rqstp->rq_proc != CB_NULL) rqstp 439 fs/nfs/callback.c if (svc_is_backchannel(rqstp)) rqstp 60 fs/nfs/callback_xdr.c static __be32 nfs4_callback_null(struct svc_rqst *rqstp) rqstp 65 fs/nfs/callback_xdr.c static int nfs4_decode_void(struct svc_rqst *rqstp, __be32 *p) rqstp 67 fs/nfs/callback_xdr.c return xdr_argsize_check(rqstp, p); rqstp 70 fs/nfs/callback_xdr.c static int nfs4_encode_void(struct svc_rqst *rqstp, __be32 *p) rqstp 72 fs/nfs/callback_xdr.c return xdr_ressize_check(rqstp, p); rqstp 176 fs/nfs/callback_xdr.c static __be32 decode_getattr_args(struct svc_rqst *rqstp, rqstp 188 fs/nfs/callback_xdr.c static __be32 decode_recall_args(struct svc_rqst *rqstp, rqstp 212 fs/nfs/callback_xdr.c static __be32 decode_layoutrecall_args(struct svc_rqst *rqstp, rqstp 256 fs/nfs/callback_xdr.c __be32 decode_devicenotify_args(struct svc_rqst *rqstp, rqstp 399 fs/nfs/callback_xdr.c static __be32 decode_cb_sequence_args(struct svc_rqst *rqstp, rqstp 416 fs/nfs/callback_xdr.c args->csa_addr = svc_addr(rqstp); rqstp 447 fs/nfs/callback_xdr.c static __be32 decode_recallany_args(struct svc_rqst *rqstp, rqstp 467 fs/nfs/callback_xdr.c static __be32 decode_recallslot_args(struct svc_rqst *rqstp, rqstp 511 fs/nfs/callback_xdr.c static __be32 decode_notify_lock_args(struct svc_rqst *rqstp, rqstp 552 fs/nfs/callback_xdr.c static __be32 decode_offload_args(struct svc_rqst *rqstp, rqstp 684 fs/nfs/callback_xdr.c static __be32 encode_getattr_res(struct svc_rqst *rqstp, struct xdr_stream *xdr, rqstp 730 fs/nfs/callback_xdr.c static __be32 encode_cb_sequence_res(struct svc_rqst *rqstp, rqstp 865 fs/nfs/callback_xdr.c static __be32 process_op(int nop, struct svc_rqst *rqstp, rqstp 906 fs/nfs/callback_xdr.c status = op->decode_args(rqstp, xdr_in, argp); rqstp 917 fs/nfs/callback_xdr.c status = op->encode_res(rqstp, xdr_out, resp); rqstp 924 fs/nfs/callback_xdr.c static __be32 nfs4_callback_compound(struct svc_rqst *rqstp) rqstp 933 fs/nfs/callback_xdr.c .net = SVC_NET(rqstp), rqstp 937 fs/nfs/callback_xdr.c xdr_init_decode(&xdr_in, &rqstp->rq_arg, rqstp 938 fs/nfs/callback_xdr.c rqstp->rq_arg.head[0].iov_base, NULL); rqstp 940 fs/nfs/callback_xdr.c p = (__be32*)((char *)rqstp->rq_res.head[0].iov_base + rqstp->rq_res.head[0].iov_len); rqstp 941 fs/nfs/callback_xdr.c xdr_init_encode(&xdr_out, &rqstp->rq_res, p, NULL); rqstp 948 fs/nfs/callback_xdr.c cps.clp = nfs4_find_client_ident(SVC_NET(rqstp), hdr_arg.cb_ident); rqstp 949 fs/nfs/callback_xdr.c if (!cps.clp || !check_gss_callback_principal(cps.clp, rqstp)) { rqstp 965 fs/nfs/callback_xdr.c status = process_op(nops, rqstp, &xdr_in, rqstp 966 fs/nfs/callback_xdr.c rqstp->rq_argp, &xdr_out, rqstp->rq_resp, rqstp 986 fs/nfs/callback_xdr.c return svc_return_autherr(rqstp, rpc_autherr_badcred); rqstp 86 fs/nfs/nfs2xdr.c static struct user_namespace *rpc_rqst_userns(const struct rpc_rqst *rqstp) rqstp 88 fs/nfs/nfs2xdr.c if (rqstp->rq_task) rqstp 89 fs/nfs/nfs2xdr.c return rpc_userns(rqstp->rq_task->tk_client); rqstp 114 fs/nfs/nfs3xdr.c static struct user_namespace *rpc_rqst_userns(const struct rpc_rqst *rqstp) rqstp 116 fs/nfs/nfs3xdr.c if (rqstp->rq_task) rqstp 117 fs/nfs/nfs3xdr.c return rpc_userns(rqstp->rq_task->tk_client); rqstp 573 fs/nfs/nfs42xdr.c static int nfs4_xdr_dec_allocate(struct rpc_rqst *rqstp, rqstp 584 fs/nfs/nfs42xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 601 fs/nfs/nfs42xdr.c static int nfs4_xdr_dec_copy(struct rpc_rqst *rqstp, rqstp 612 fs/nfs/nfs42xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 636 fs/nfs/nfs42xdr.c static int nfs4_xdr_dec_offload_cancel(struct rpc_rqst *rqstp, rqstp 647 fs/nfs/nfs42xdr.c status = decode_sequence(xdr, &res->osr_seq_res, rqstp); rqstp 662 fs/nfs/nfs42xdr.c static int nfs4_xdr_dec_deallocate(struct rpc_rqst *rqstp, rqstp 673 fs/nfs/nfs42xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 690 fs/nfs/nfs42xdr.c static int nfs4_xdr_dec_seek(struct rpc_rqst *rqstp, rqstp 701 fs/nfs/nfs42xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 715 fs/nfs/nfs42xdr.c static int nfs4_xdr_dec_layoutstats(struct rpc_rqst *rqstp, rqstp 726 fs/nfs/nfs42xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 746 fs/nfs/nfs42xdr.c static int nfs4_xdr_dec_clone(struct rpc_rqst *rqstp, rqstp 757 fs/nfs/nfs42xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 782 fs/nfs/nfs42xdr.c static int nfs4_xdr_dec_layouterror(struct rpc_rqst *rqstp, rqstp 793 fs/nfs/nfs42xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 584 fs/nfs/nfs4trace.h const struct rpc_rqst *rqstp = xdr->rqst; rqstp 585 fs/nfs/nfs4trace.h const struct rpc_task *task = rqstp->rq_task; rqstp 589 fs/nfs/nfs4trace.h __entry->xid = be32_to_cpu(rqstp->rq_xid); rqstp 5719 fs/nfs/nfs4xdr.c struct rpc_rqst *rqstp) rqstp 6029 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_open_downgrade(struct rpc_rqst *rqstp, rqstp 6040 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 6060 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_access(struct rpc_rqst *rqstp, struct xdr_stream *xdr, rqstp 6070 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 6088 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_lookup(struct rpc_rqst *rqstp, struct xdr_stream *xdr, rqstp 6098 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 6118 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_lookupp(struct rpc_rqst *rqstp, struct xdr_stream *xdr, rqstp 6128 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 6148 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_lookup_root(struct rpc_rqst *rqstp, rqstp 6159 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 6176 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_remove(struct rpc_rqst *rqstp, struct xdr_stream *xdr, rqstp 6186 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 6200 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_rename(struct rpc_rqst *rqstp, struct xdr_stream *xdr, rqstp 6210 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 6230 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_link(struct rpc_rqst *rqstp, struct xdr_stream *xdr, rqstp 6240 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 6270 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_create(struct rpc_rqst *rqstp, struct xdr_stream *xdr, rqstp 6280 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 6300 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_symlink(struct rpc_rqst *rqstp, struct xdr_stream *xdr, rqstp 6303 fs/nfs/nfs4xdr.c return nfs4_xdr_dec_create(rqstp, xdr, res); rqstp 6309 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_getattr(struct rpc_rqst *rqstp, struct xdr_stream *xdr, rqstp 6319 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 6352 fs/nfs/nfs4xdr.c nfs4_xdr_dec_setacl(struct rpc_rqst *rqstp, struct xdr_stream *xdr, rqstp 6362 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 6377 fs/nfs/nfs4xdr.c nfs4_xdr_dec_getacl(struct rpc_rqst *rqstp, struct xdr_stream *xdr, rqstp 6391 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 6397 fs/nfs/nfs4xdr.c status = decode_getacl(xdr, rqstp, res); rqstp 6406 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_close(struct rpc_rqst *rqstp, struct xdr_stream *xdr, rqstp 6416 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 6441 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_open(struct rpc_rqst *rqstp, struct xdr_stream *xdr, rqstp 6451 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 6467 fs/nfs/nfs4xdr.c decode_layoutget(xdr, rqstp, res->lg_res); rqstp 6475 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_open_confirm(struct rpc_rqst *rqstp, rqstp 6497 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_open_noattr(struct rpc_rqst *rqstp, rqstp 6508 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 6521 fs/nfs/nfs4xdr.c decode_layoutget(xdr, rqstp, res->lg_res); rqstp 6529 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_setattr(struct rpc_rqst *rqstp, rqstp 6540 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 6557 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_lock(struct rpc_rqst *rqstp, struct xdr_stream *xdr, rqstp 6567 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 6581 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_lockt(struct rpc_rqst *rqstp, struct xdr_stream *xdr, rqstp 6591 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 6605 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_locku(struct rpc_rqst *rqstp, struct xdr_stream *xdr, rqstp 6615 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 6626 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_release_lockowner(struct rpc_rqst *rqstp, rqstp 6641 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_readlink(struct rpc_rqst *rqstp, rqstp 6652 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 6658 fs/nfs/nfs4xdr.c status = decode_readlink(xdr, rqstp); rqstp 6666 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_readdir(struct rpc_rqst *rqstp, struct xdr_stream *xdr, rqstp 6676 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 6682 fs/nfs/nfs4xdr.c status = decode_readdir(xdr, rqstp, res); rqstp 6690 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_read(struct rpc_rqst *rqstp, struct xdr_stream *xdr, rqstp 6701 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 6707 fs/nfs/nfs4xdr.c status = decode_read(xdr, rqstp, res); rqstp 6717 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_write(struct rpc_rqst *rqstp, struct xdr_stream *xdr, rqstp 6728 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 6748 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_commit(struct rpc_rqst *rqstp, struct xdr_stream *xdr, rqstp 6759 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 6858 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_renew(struct rpc_rqst *rqstp, struct xdr_stream *xdr, rqstp 6906 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_delegreturn(struct rpc_rqst *rqstp, rqstp 6917 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 6986 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_secinfo(struct rpc_rqst *rqstp, rqstp 6997 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 7011 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_fsid_present(struct rpc_rqst *rqstp, rqstp 7022 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 7041 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_bind_conn_to_session(struct rpc_rqst *rqstp, rqstp 7057 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_exchange_id(struct rpc_rqst *rqstp, rqstp 7073 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_create_session(struct rpc_rqst *rqstp, rqstp 7089 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_destroy_session(struct rpc_rqst *rqstp, rqstp 7105 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_destroy_clientid(struct rpc_rqst *rqstp, rqstp 7121 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_sequence(struct rpc_rqst *rqstp, rqstp 7130 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, res, rqstp); rqstp 7139 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_get_lease_time(struct rpc_rqst *rqstp, rqstp 7149 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->lr_seq_res, rqstp); rqstp 7162 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_reclaim_complete(struct rpc_rqst *rqstp, rqstp 7172 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 7181 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_getdeviceinfo(struct rpc_rqst *rqstp, rqstp 7192 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 7203 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_layoutget(struct rpc_rqst *rqstp, rqstp 7214 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 7220 fs/nfs/nfs4xdr.c status = decode_layoutget(xdr, rqstp, res); rqstp 7228 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_layoutreturn(struct rpc_rqst *rqstp, rqstp 7239 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 7253 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_layoutcommit(struct rpc_rqst *rqstp, rqstp 7264 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 7270 fs/nfs/nfs4xdr.c status = decode_layoutcommit(xdr, rqstp, res); rqstp 7281 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_secinfo_no_name(struct rpc_rqst *rqstp, rqstp 7292 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 7306 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_test_stateid(struct rpc_rqst *rqstp, rqstp 7317 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 7328 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_free_stateid(struct rpc_rqst *rqstp, rqstp 7339 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); rqstp 1154 fs/nfs/nfstrace.h const struct rpc_rqst *rqstp = xdr->rqst; rqstp 1155 fs/nfs/nfstrace.h const struct rpc_task *task = rqstp->rq_task; rqstp 1159 fs/nfs/nfstrace.h __entry->xid = be32_to_cpu(rqstp->rq_xid); rqstp 46 fs/nfsd/acl.h int nfsd4_get_nfs4_acl(struct svc_rqst *rqstp, struct dentry *dentry, rqstp 48 fs/nfsd/acl.h __be32 nfsd4_set_nfs4_acl(struct svc_rqst *rqstp, struct svc_fh *fhp, rqstp 8 fs/nfsd/auth.c int nfsexp_flags(struct svc_rqst *rqstp, struct svc_export *exp) rqstp 14 fs/nfsd/auth.c if (f->pseudoflavor == rqstp->rq_cred.cr_flavor) rqstp 21 fs/nfsd/auth.c int nfsd_setuser(struct svc_rqst *rqstp, struct svc_export *exp) rqstp 27 fs/nfsd/auth.c int flags = nfsexp_flags(rqstp, exp); rqstp 37 fs/nfsd/auth.c new->fsuid = rqstp->rq_cred.cr_uid; rqstp 38 fs/nfsd/auth.c new->fsgid = rqstp->rq_cred.cr_gid; rqstp 40 fs/nfsd/auth.c rqgi = rqstp->rq_cred.cr_group_info; rqstp 169 fs/nfsd/blocklayout.c struct svc_rqst *rqstp, rqstp 381 fs/nfsd/blocklayout.c struct svc_rqst *rqstp, rqstp 953 fs/nfsd/export.c __be32 check_nfsd_access(struct svc_export *exp, struct svc_rqst *rqstp) rqstp 959 fs/nfsd/export.c if (exp->ex_client == rqstp->rq_gssclient) rqstp 963 fs/nfsd/export.c if (f->pseudoflavor == rqstp->rq_cred.cr_flavor) rqstp 968 fs/nfsd/export.c if (rqstp->rq_cred.cr_flavor == RPC_AUTH_NULL || rqstp 969 fs/nfsd/export.c rqstp->rq_cred.cr_flavor == RPC_AUTH_UNIX) rqstp 979 fs/nfsd/export.c if (nfsd4_spo_must_allow(rqstp)) rqstp 995 fs/nfsd/export.c rqst_exp_get_by_name(struct svc_rqst *rqstp, struct path *path) rqstp 998 fs/nfsd/export.c struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); rqstp 1001 fs/nfsd/export.c if (rqstp->rq_client == NULL) rqstp 1005 fs/nfsd/export.c exp = exp_get_by_name(cd, rqstp->rq_client, path, &rqstp->rq_chandle); rqstp 1015 fs/nfsd/export.c if (rqstp->rq_gssclient == NULL) rqstp 1017 fs/nfsd/export.c gssexp = exp_get_by_name(cd, rqstp->rq_gssclient, path, &rqstp->rq_chandle); rqstp 1026 fs/nfsd/export.c rqst_exp_find(struct svc_rqst *rqstp, int fsid_type, u32 *fsidv) rqstp 1029 fs/nfsd/export.c struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); rqstp 1032 fs/nfsd/export.c if (rqstp->rq_client == NULL) rqstp 1036 fs/nfsd/export.c exp = exp_find(cd, rqstp->rq_client, fsid_type, rqstp 1037 fs/nfsd/export.c fsidv, &rqstp->rq_chandle); rqstp 1047 fs/nfsd/export.c if (rqstp->rq_gssclient == NULL) rqstp 1049 fs/nfsd/export.c gssexp = exp_find(cd, rqstp->rq_gssclient, fsid_type, fsidv, rqstp 1050 fs/nfsd/export.c &rqstp->rq_chandle); rqstp 1059 fs/nfsd/export.c rqst_exp_parent(struct svc_rqst *rqstp, struct path *path) rqstp 1062 fs/nfsd/export.c struct svc_export *exp = rqst_exp_get_by_name(rqstp, path); rqstp 1068 fs/nfsd/export.c exp = rqst_exp_get_by_name(rqstp, path); rqstp 1075 fs/nfsd/export.c struct svc_export *rqst_find_fsidzero_export(struct svc_rqst *rqstp) rqstp 1081 fs/nfsd/export.c return rqst_exp_find(rqstp, FSID_NUM, fsidv); rqstp 1090 fs/nfsd/export.c exp_pseudoroot(struct svc_rqst *rqstp, struct svc_fh *fhp) rqstp 1095 fs/nfsd/export.c exp = rqst_find_fsidzero_export(rqstp); rqstp 86 fs/nfsd/export.h int nfsexp_flags(struct svc_rqst *rqstp, struct svc_export *exp); rqstp 87 fs/nfsd/export.h __be32 check_nfsd_access(struct svc_export *exp, struct svc_rqst *rqstp); rqstp 786 fs/nfsd/filecache.c nfsd_file_acquire(struct svc_rqst *rqstp, struct svc_fh *fhp, rqstp 790 fs/nfsd/filecache.c struct net *net = SVC_NET(rqstp); rqstp 797 fs/nfsd/filecache.c status = fh_verify(rqstp, fhp, S_IFREG, rqstp 813 fs/nfsd/filecache.c trace_nfsd_file_acquire(rqstp, hashval, inode, may_flags, rqstp 864 fs/nfsd/filecache.c trace_nfsd_file_acquire(rqstp, hashval, inode, may_flags, nf, status); rqstp 882 fs/nfsd/filecache.c status = nfsd_open_verified(rqstp, fhp, S_IFREG, rqstp 58 fs/nfsd/filecache.h __be32 nfsd_file_acquire(struct svc_rqst *rqstp, struct svc_fh *fhp, rqstp 80 fs/nfsd/flexfilelayout.c nfsd4_ff_proc_getdeviceinfo(struct super_block *sb, struct svc_rqst *rqstp, rqstp 97 fs/nfsd/flexfilelayout.c da->rsize = svc_max_payload(rqstp); rqstp 100 fs/nfsd/flexfilelayout.c rpc_ntop((struct sockaddr *)&rqstp->rq_daddr, rqstp 102 fs/nfsd/flexfilelayout.c if (rqstp->rq_daddr.ss_family == AF_INET) { rqstp 105 fs/nfsd/flexfilelayout.c sin = (struct sockaddr_in *)&rqstp->rq_daddr; rqstp 112 fs/nfsd/flexfilelayout.c sin6 = (struct sockaddr_in6 *)&rqstp->rq_daddr; rqstp 28 fs/nfsd/lockd.c nlm_fopen(struct svc_rqst *rqstp, struct nfs_fh *f, struct file **filp) rqstp 39 fs/nfsd/lockd.c nfserr = nfsd_open(rqstp, &fh, S_IFREG, NFSD_MAY_LOCK, filp); rqstp 23 fs/nfsd/nfs2acl.c nfsacld_proc_null(struct svc_rqst *rqstp) rqstp 31 fs/nfsd/nfs2acl.c static __be32 nfsacld_proc_getacl(struct svc_rqst *rqstp) rqstp 33 fs/nfsd/nfs2acl.c struct nfsd3_getaclargs *argp = rqstp->rq_argp; rqstp 34 fs/nfsd/nfs2acl.c struct nfsd3_getaclres *resp = rqstp->rq_resp; rqstp 43 fs/nfsd/nfs2acl.c nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); rqstp 92 fs/nfsd/nfs2acl.c static __be32 nfsacld_proc_setacl(struct svc_rqst *rqstp) rqstp 94 fs/nfsd/nfs2acl.c struct nfsd3_setaclargs *argp = rqstp->rq_argp; rqstp 95 fs/nfsd/nfs2acl.c struct nfsd_attrstat *resp = rqstp->rq_resp; rqstp 104 fs/nfsd/nfs2acl.c nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); rqstp 146 fs/nfsd/nfs2acl.c static __be32 nfsacld_proc_getattr(struct svc_rqst *rqstp) rqstp 148 fs/nfsd/nfs2acl.c struct nfsd_fhandle *argp = rqstp->rq_argp; rqstp 149 fs/nfsd/nfs2acl.c struct nfsd_attrstat *resp = rqstp->rq_resp; rqstp 154 fs/nfsd/nfs2acl.c nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); rqstp 164 fs/nfsd/nfs2acl.c static __be32 nfsacld_proc_access(struct svc_rqst *rqstp) rqstp 166 fs/nfsd/nfs2acl.c struct nfsd3_accessargs *argp = rqstp->rq_argp; rqstp 167 fs/nfsd/nfs2acl.c struct nfsd3_accessres *resp = rqstp->rq_resp; rqstp 176 fs/nfsd/nfs2acl.c nfserr = nfsd_access(rqstp, &resp->fh, &resp->access, NULL); rqstp 186 fs/nfsd/nfs2acl.c static int nfsaclsvc_decode_getaclargs(struct svc_rqst *rqstp, __be32 *p) rqstp 188 fs/nfsd/nfs2acl.c struct nfsd3_getaclargs *argp = rqstp->rq_argp; rqstp 195 fs/nfsd/nfs2acl.c return xdr_argsize_check(rqstp, p); rqstp 199 fs/nfsd/nfs2acl.c static int nfsaclsvc_decode_setaclargs(struct svc_rqst *rqstp, __be32 *p) rqstp 201 fs/nfsd/nfs2acl.c struct nfsd3_setaclargs *argp = rqstp->rq_argp; rqstp 202 fs/nfsd/nfs2acl.c struct kvec *head = rqstp->rq_arg.head; rqstp 211 fs/nfsd/nfs2acl.c !xdr_argsize_check(rqstp, p)) rqstp 215 fs/nfsd/nfs2acl.c n = nfsacl_decode(&rqstp->rq_arg, base, NULL, rqstp 219 fs/nfsd/nfs2acl.c n = nfsacl_decode(&rqstp->rq_arg, base + n, NULL, rqstp 225 fs/nfsd/nfs2acl.c static int nfsaclsvc_decode_fhandleargs(struct svc_rqst *rqstp, __be32 *p) rqstp 227 fs/nfsd/nfs2acl.c struct nfsd_fhandle *argp = rqstp->rq_argp; rqstp 232 fs/nfsd/nfs2acl.c return xdr_argsize_check(rqstp, p); rqstp 235 fs/nfsd/nfs2acl.c static int nfsaclsvc_decode_accessargs(struct svc_rqst *rqstp, __be32 *p) rqstp 237 fs/nfsd/nfs2acl.c struct nfsd3_accessargs *argp = rqstp->rq_argp; rqstp 244 fs/nfsd/nfs2acl.c return xdr_argsize_check(rqstp, p); rqstp 255 fs/nfsd/nfs2acl.c static int nfsaclsvc_encode_voidres(struct svc_rqst *rqstp, __be32 *p) rqstp 257 fs/nfsd/nfs2acl.c return xdr_ressize_check(rqstp, p); rqstp 261 fs/nfsd/nfs2acl.c static int nfsaclsvc_encode_getaclres(struct svc_rqst *rqstp, __be32 *p) rqstp 263 fs/nfsd/nfs2acl.c struct nfsd3_getaclres *resp = rqstp->rq_resp; rqstp 266 fs/nfsd/nfs2acl.c struct kvec *head = rqstp->rq_res.head; rqstp 280 fs/nfsd/nfs2acl.c p = nfs2svc_encode_fattr(rqstp, p, &resp->fh, &resp->stat); rqstp 282 fs/nfsd/nfs2acl.c if (!xdr_ressize_check(rqstp, p)) rqstp 286 fs/nfsd/nfs2acl.c rqstp->rq_res.page_len = w = nfsacl_size( rqstp 290 fs/nfsd/nfs2acl.c if (!*(rqstp->rq_next_page++)) rqstp 295 fs/nfsd/nfs2acl.c n = nfsacl_encode(&rqstp->rq_res, base, inode, rqstp 299 fs/nfsd/nfs2acl.c n = nfsacl_encode(&rqstp->rq_res, base + n, inode, rqstp 306 fs/nfsd/nfs2acl.c static int nfsaclsvc_encode_attrstatres(struct svc_rqst *rqstp, __be32 *p) rqstp 308 fs/nfsd/nfs2acl.c struct nfsd_attrstat *resp = rqstp->rq_resp; rqstp 310 fs/nfsd/nfs2acl.c p = nfs2svc_encode_fattr(rqstp, p, &resp->fh, &resp->stat); rqstp 311 fs/nfsd/nfs2acl.c return xdr_ressize_check(rqstp, p); rqstp 315 fs/nfsd/nfs2acl.c static int nfsaclsvc_encode_accessres(struct svc_rqst *rqstp, __be32 *p) rqstp 317 fs/nfsd/nfs2acl.c struct nfsd3_accessres *resp = rqstp->rq_resp; rqstp 319 fs/nfsd/nfs2acl.c p = nfs2svc_encode_fattr(rqstp, p, &resp->fh, &resp->stat); rqstp 321 fs/nfsd/nfs2acl.c return xdr_ressize_check(rqstp, p); rqstp 327 fs/nfsd/nfs2acl.c static void nfsaclsvc_release_getacl(struct svc_rqst *rqstp) rqstp 329 fs/nfsd/nfs2acl.c struct nfsd3_getaclres *resp = rqstp->rq_resp; rqstp 336 fs/nfsd/nfs2acl.c static void nfsaclsvc_release_attrstat(struct svc_rqst *rqstp) rqstp 338 fs/nfsd/nfs2acl.c struct nfsd_attrstat *resp = rqstp->rq_resp; rqstp 343 fs/nfsd/nfs2acl.c static void nfsaclsvc_release_access(struct svc_rqst *rqstp) rqstp 345 fs/nfsd/nfs2acl.c struct nfsd3_accessres *resp = rqstp->rq_resp; rqstp 22 fs/nfsd/nfs3acl.c nfsd3_proc_null(struct svc_rqst *rqstp) rqstp 30 fs/nfsd/nfs3acl.c static __be32 nfsd3_proc_getacl(struct svc_rqst *rqstp) rqstp 32 fs/nfsd/nfs3acl.c struct nfsd3_getaclargs *argp = rqstp->rq_argp; rqstp 33 fs/nfsd/nfs3acl.c struct nfsd3_getaclres *resp = rqstp->rq_resp; rqstp 40 fs/nfsd/nfs3acl.c nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); rqstp 85 fs/nfsd/nfs3acl.c static __be32 nfsd3_proc_setacl(struct svc_rqst *rqstp) rqstp 87 fs/nfsd/nfs3acl.c struct nfsd3_setaclargs *argp = rqstp->rq_argp; rqstp 88 fs/nfsd/nfs3acl.c struct nfsd3_attrstat *resp = rqstp->rq_resp; rqstp 95 fs/nfsd/nfs3acl.c nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); rqstp 128 fs/nfsd/nfs3acl.c static int nfs3svc_decode_getaclargs(struct svc_rqst *rqstp, __be32 *p) rqstp 130 fs/nfsd/nfs3acl.c struct nfsd3_getaclargs *args = rqstp->rq_argp; rqstp 137 fs/nfsd/nfs3acl.c return xdr_argsize_check(rqstp, p); rqstp 141 fs/nfsd/nfs3acl.c static int nfs3svc_decode_setaclargs(struct svc_rqst *rqstp, __be32 *p) rqstp 143 fs/nfsd/nfs3acl.c struct nfsd3_setaclargs *args = rqstp->rq_argp; rqstp 144 fs/nfsd/nfs3acl.c struct kvec *head = rqstp->rq_arg.head; rqstp 153 fs/nfsd/nfs3acl.c !xdr_argsize_check(rqstp, p)) rqstp 157 fs/nfsd/nfs3acl.c n = nfsacl_decode(&rqstp->rq_arg, base, NULL, rqstp 161 fs/nfsd/nfs3acl.c n = nfsacl_decode(&rqstp->rq_arg, base + n, NULL, rqstp 172 fs/nfsd/nfs3acl.c static int nfs3svc_encode_getaclres(struct svc_rqst *rqstp, __be32 *p) rqstp 174 fs/nfsd/nfs3acl.c struct nfsd3_getaclres *resp = rqstp->rq_resp; rqstp 177 fs/nfsd/nfs3acl.c p = nfs3svc_encode_post_op_attr(rqstp, p, &resp->fh); rqstp 180 fs/nfsd/nfs3acl.c struct kvec *head = rqstp->rq_res.head; rqstp 186 fs/nfsd/nfs3acl.c if (!xdr_ressize_check(rqstp, p)) rqstp 190 fs/nfsd/nfs3acl.c rqstp->rq_res.page_len = w = nfsacl_size( rqstp 194 fs/nfsd/nfs3acl.c if (!*(rqstp->rq_next_page++)) rqstp 199 fs/nfsd/nfs3acl.c n = nfsacl_encode(&rqstp->rq_res, base, inode, rqstp 203 fs/nfsd/nfs3acl.c n = nfsacl_encode(&rqstp->rq_res, base + n, inode, rqstp 210 fs/nfsd/nfs3acl.c if (!xdr_ressize_check(rqstp, p)) rqstp 217 fs/nfsd/nfs3acl.c static int nfs3svc_encode_setaclres(struct svc_rqst *rqstp, __be32 *p) rqstp 219 fs/nfsd/nfs3acl.c struct nfsd3_attrstat *resp = rqstp->rq_resp; rqstp 221 fs/nfsd/nfs3acl.c p = nfs3svc_encode_post_op_attr(rqstp, p, &resp->fh); rqstp 223 fs/nfsd/nfs3acl.c return xdr_ressize_check(rqstp, p); rqstp 229 fs/nfsd/nfs3acl.c static void nfs3svc_release_getacl(struct svc_rqst *rqstp) rqstp 231 fs/nfsd/nfs3acl.c struct nfsd3_getaclres *resp = rqstp->rq_resp; rqstp 35 fs/nfsd/nfs3proc.c nfsd3_proc_null(struct svc_rqst *rqstp) rqstp 44 fs/nfsd/nfs3proc.c nfsd3_proc_getattr(struct svc_rqst *rqstp) rqstp 46 fs/nfsd/nfs3proc.c struct nfsd_fhandle *argp = rqstp->rq_argp; rqstp 47 fs/nfsd/nfs3proc.c struct nfsd3_attrstat *resp = rqstp->rq_resp; rqstp 54 fs/nfsd/nfs3proc.c nfserr = fh_verify(rqstp, &resp->fh, 0, rqstp 68 fs/nfsd/nfs3proc.c nfsd3_proc_setattr(struct svc_rqst *rqstp) rqstp 70 fs/nfsd/nfs3proc.c struct nfsd3_sattrargs *argp = rqstp->rq_argp; rqstp 71 fs/nfsd/nfs3proc.c struct nfsd3_attrstat *resp = rqstp->rq_resp; rqstp 78 fs/nfsd/nfs3proc.c nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, rqstp 87 fs/nfsd/nfs3proc.c nfsd3_proc_lookup(struct svc_rqst *rqstp) rqstp 89 fs/nfsd/nfs3proc.c struct nfsd3_diropargs *argp = rqstp->rq_argp; rqstp 90 fs/nfsd/nfs3proc.c struct nfsd3_diropres *resp = rqstp->rq_resp; rqstp 101 fs/nfsd/nfs3proc.c nfserr = nfsd_lookup(rqstp, &resp->dirfh, rqstp 112 fs/nfsd/nfs3proc.c nfsd3_proc_access(struct svc_rqst *rqstp) rqstp 114 fs/nfsd/nfs3proc.c struct nfsd3_accessargs *argp = rqstp->rq_argp; rqstp 115 fs/nfsd/nfs3proc.c struct nfsd3_accessres *resp = rqstp->rq_resp; rqstp 124 fs/nfsd/nfs3proc.c nfserr = nfsd_access(rqstp, &resp->fh, &resp->access, NULL); rqstp 132 fs/nfsd/nfs3proc.c nfsd3_proc_readlink(struct svc_rqst *rqstp) rqstp 134 fs/nfsd/nfs3proc.c struct nfsd3_readlinkargs *argp = rqstp->rq_argp; rqstp 135 fs/nfsd/nfs3proc.c struct nfsd3_readlinkres *resp = rqstp->rq_resp; rqstp 143 fs/nfsd/nfs3proc.c nfserr = nfsd_readlink(rqstp, &resp->fh, argp->buffer, &resp->len); rqstp 151 fs/nfsd/nfs3proc.c nfsd3_proc_read(struct svc_rqst *rqstp) rqstp 153 fs/nfsd/nfs3proc.c struct nfsd3_readargs *argp = rqstp->rq_argp; rqstp 154 fs/nfsd/nfs3proc.c struct nfsd3_readres *resp = rqstp->rq_resp; rqstp 156 fs/nfsd/nfs3proc.c u32 max_blocksize = svc_max_payload(rqstp); rqstp 169 fs/nfsd/nfs3proc.c svc_reserve_auth(rqstp, ((1 + NFS3_POST_OP_ATTR_WORDS + 3)<<2) + resp->count +4); rqstp 172 fs/nfsd/nfs3proc.c nfserr = nfsd_read(rqstp, &resp->fh, rqstp 174 fs/nfsd/nfs3proc.c rqstp->rq_vec, argp->vlen, rqstp 184 fs/nfsd/nfs3proc.c nfsd3_proc_write(struct svc_rqst *rqstp) rqstp 186 fs/nfsd/nfs3proc.c struct nfsd3_writeargs *argp = rqstp->rq_argp; rqstp 187 fs/nfsd/nfs3proc.c struct nfsd3_writeres *resp = rqstp->rq_resp; rqstp 200 fs/nfsd/nfs3proc.c nvecs = svc_fill_write_vector(rqstp, rqstp->rq_arg.pages, rqstp 204 fs/nfsd/nfs3proc.c nfserr = nfsd_write(rqstp, &resp->fh, argp->offset, rqstp 205 fs/nfsd/nfs3proc.c rqstp->rq_vec, nvecs, &cnt, rqstp 217 fs/nfsd/nfs3proc.c nfsd3_proc_create(struct svc_rqst *rqstp) rqstp 219 fs/nfsd/nfs3proc.c struct nfsd3_createargs *argp = rqstp->rq_argp; rqstp 220 fs/nfsd/nfs3proc.c struct nfsd3_diropres *resp = rqstp->rq_resp; rqstp 244 fs/nfsd/nfs3proc.c nfserr = do_nfsd_create(rqstp, dirfhp, argp->name, argp->len, rqstp 255 fs/nfsd/nfs3proc.c nfsd3_proc_mkdir(struct svc_rqst *rqstp) rqstp 257 fs/nfsd/nfs3proc.c struct nfsd3_createargs *argp = rqstp->rq_argp; rqstp 258 fs/nfsd/nfs3proc.c struct nfsd3_diropres *resp = rqstp->rq_resp; rqstp 269 fs/nfsd/nfs3proc.c nfserr = nfsd_create(rqstp, &resp->dirfh, argp->name, argp->len, rqstp 276 fs/nfsd/nfs3proc.c nfsd3_proc_symlink(struct svc_rqst *rqstp) rqstp 278 fs/nfsd/nfs3proc.c struct nfsd3_symlinkargs *argp = rqstp->rq_argp; rqstp 279 fs/nfsd/nfs3proc.c struct nfsd3_diropres *resp = rqstp->rq_resp; rqstp 287 fs/nfsd/nfs3proc.c argp->tname = svc_fill_symlink_pathname(rqstp, &argp->first, rqstp 288 fs/nfsd/nfs3proc.c page_address(rqstp->rq_arg.pages[0]), rqstp 300 fs/nfsd/nfs3proc.c nfserr = nfsd_symlink(rqstp, &resp->dirfh, argp->fname, argp->flen, rqstp 310 fs/nfsd/nfs3proc.c nfsd3_proc_mknod(struct svc_rqst *rqstp) rqstp 312 fs/nfsd/nfs3proc.c struct nfsd3_mknodargs *argp = rqstp->rq_argp; rqstp 313 fs/nfsd/nfs3proc.c struct nfsd3_diropres *resp = rqstp->rq_resp; rqstp 338 fs/nfsd/nfs3proc.c nfserr = nfsd_create(rqstp, &resp->dirfh, argp->name, argp->len, rqstp 348 fs/nfsd/nfs3proc.c nfsd3_proc_remove(struct svc_rqst *rqstp) rqstp 350 fs/nfsd/nfs3proc.c struct nfsd3_diropargs *argp = rqstp->rq_argp; rqstp 351 fs/nfsd/nfs3proc.c struct nfsd3_attrstat *resp = rqstp->rq_resp; rqstp 361 fs/nfsd/nfs3proc.c nfserr = nfsd_unlink(rqstp, &resp->fh, -S_IFDIR, argp->name, argp->len); rqstp 370 fs/nfsd/nfs3proc.c nfsd3_proc_rmdir(struct svc_rqst *rqstp) rqstp 372 fs/nfsd/nfs3proc.c struct nfsd3_diropargs *argp = rqstp->rq_argp; rqstp 373 fs/nfsd/nfs3proc.c struct nfsd3_attrstat *resp = rqstp->rq_resp; rqstp 382 fs/nfsd/nfs3proc.c nfserr = nfsd_unlink(rqstp, &resp->fh, S_IFDIR, argp->name, argp->len); rqstp 388 fs/nfsd/nfs3proc.c nfsd3_proc_rename(struct svc_rqst *rqstp) rqstp 390 fs/nfsd/nfs3proc.c struct nfsd3_renameargs *argp = rqstp->rq_argp; rqstp 391 fs/nfsd/nfs3proc.c struct nfsd3_renameres *resp = rqstp->rq_resp; rqstp 405 fs/nfsd/nfs3proc.c nfserr = nfsd_rename(rqstp, &resp->ffh, argp->fname, argp->flen, rqstp 411 fs/nfsd/nfs3proc.c nfsd3_proc_link(struct svc_rqst *rqstp) rqstp 413 fs/nfsd/nfs3proc.c struct nfsd3_linkargs *argp = rqstp->rq_argp; rqstp 414 fs/nfsd/nfs3proc.c struct nfsd3_linkres *resp = rqstp->rq_resp; rqstp 426 fs/nfsd/nfs3proc.c nfserr = nfsd_link(rqstp, &resp->tfh, argp->tname, argp->tlen, rqstp 435 fs/nfsd/nfs3proc.c nfsd3_proc_readdir(struct svc_rqst *rqstp) rqstp 437 fs/nfsd/nfs3proc.c struct nfsd3_readdirargs *argp = rqstp->rq_argp; rqstp 438 fs/nfsd/nfs3proc.c struct nfsd3_readdirres *resp = rqstp->rq_resp; rqstp 458 fs/nfsd/nfs3proc.c resp->rqstp = rqstp; rqstp 459 fs/nfsd/nfs3proc.c nfserr = nfsd_readdir(rqstp, &resp->fh, (loff_t*) &argp->cookie, rqstp 463 fs/nfsd/nfs3proc.c for (p = rqstp->rq_respages + 1; p < rqstp->rq_next_page; p++) { rqstp 496 fs/nfsd/nfs3proc.c nfsd3_proc_readdirplus(struct svc_rqst *rqstp) rqstp 498 fs/nfsd/nfs3proc.c struct nfsd3_readdirargs *argp = rqstp->rq_argp; rqstp 499 fs/nfsd/nfs3proc.c struct nfsd3_readdirres *resp = rqstp->rq_resp; rqstp 520 fs/nfsd/nfs3proc.c resp->rqstp = rqstp; rqstp 523 fs/nfsd/nfs3proc.c nfserr = fh_verify(rqstp, &resp->fh, S_IFDIR, NFSD_MAY_NOP); rqstp 530 fs/nfsd/nfs3proc.c nfserr = nfsd_readdir(rqstp, &resp->fh, rqstp 535 fs/nfsd/nfs3proc.c for (p = rqstp->rq_respages + 1; p < rqstp->rq_next_page; p++) { rqstp 565 fs/nfsd/nfs3proc.c nfsd3_proc_fsstat(struct svc_rqst *rqstp) rqstp 567 fs/nfsd/nfs3proc.c struct nfsd_fhandle *argp = rqstp->rq_argp; rqstp 568 fs/nfsd/nfs3proc.c struct nfsd3_fsstatres *resp = rqstp->rq_resp; rqstp 574 fs/nfsd/nfs3proc.c nfserr = nfsd_statfs(rqstp, &argp->fh, &resp->stats, 0); rqstp 583 fs/nfsd/nfs3proc.c nfsd3_proc_fsinfo(struct svc_rqst *rqstp) rqstp 585 fs/nfsd/nfs3proc.c struct nfsd_fhandle *argp = rqstp->rq_argp; rqstp 586 fs/nfsd/nfs3proc.c struct nfsd3_fsinfores *resp = rqstp->rq_resp; rqstp 588 fs/nfsd/nfs3proc.c u32 max_blocksize = svc_max_payload(rqstp); rqstp 603 fs/nfsd/nfs3proc.c nfserr = fh_verify(rqstp, &argp->fh, 0, rqstp 627 fs/nfsd/nfs3proc.c nfsd3_proc_pathconf(struct svc_rqst *rqstp) rqstp 629 fs/nfsd/nfs3proc.c struct nfsd_fhandle *argp = rqstp->rq_argp; rqstp 630 fs/nfsd/nfs3proc.c struct nfsd3_pathconfres *resp = rqstp->rq_resp; rqstp 644 fs/nfsd/nfs3proc.c nfserr = fh_verify(rqstp, &argp->fh, 0, NFSD_MAY_NOP); rqstp 671 fs/nfsd/nfs3proc.c nfsd3_proc_commit(struct svc_rqst *rqstp) rqstp 673 fs/nfsd/nfs3proc.c struct nfsd3_commitargs *argp = rqstp->rq_argp; rqstp 674 fs/nfsd/nfs3proc.c struct nfsd3_commitres *resp = rqstp->rq_resp; rqstp 686 fs/nfsd/nfs3proc.c nfserr = nfsd_commit(rqstp, &resp->fh, argp->offset, argp->count); rqstp 166 fs/nfsd/nfs3xdr.c encode_fattr3(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, rqstp 169 fs/nfsd/nfs3xdr.c struct user_namespace *userns = nfsd_user_namespace(rqstp); rqstp 197 fs/nfsd/nfs3xdr.c encode_saved_post_attr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) rqstp 201 fs/nfsd/nfs3xdr.c return encode_fattr3(rqstp, p, fhp, &fhp->fh_post_attr); rqstp 210 fs/nfsd/nfs3xdr.c encode_post_op_attr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) rqstp 221 fs/nfsd/nfs3xdr.c return encode_fattr3(rqstp, p, fhp, &stat); rqstp 230 fs/nfsd/nfs3xdr.c nfs3svc_encode_post_op_attr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) rqstp 232 fs/nfsd/nfs3xdr.c return encode_post_op_attr(rqstp, p, fhp); rqstp 239 fs/nfsd/nfs3xdr.c encode_wcc_data(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) rqstp 252 fs/nfsd/nfs3xdr.c return encode_saved_post_attr(rqstp, p, fhp); rqstp 256 fs/nfsd/nfs3xdr.c return encode_post_op_attr(rqstp, p, fhp); rqstp 312 fs/nfsd/nfs3xdr.c nfs3svc_decode_fhandle(struct svc_rqst *rqstp, __be32 *p) rqstp 314 fs/nfsd/nfs3xdr.c struct nfsd_fhandle *args = rqstp->rq_argp; rqstp 319 fs/nfsd/nfs3xdr.c return xdr_argsize_check(rqstp, p); rqstp 323 fs/nfsd/nfs3xdr.c nfs3svc_decode_sattrargs(struct svc_rqst *rqstp, __be32 *p) rqstp 325 fs/nfsd/nfs3xdr.c struct nfsd3_sattrargs *args = rqstp->rq_argp; rqstp 330 fs/nfsd/nfs3xdr.c p = decode_sattr3(p, &args->attrs, nfsd_user_namespace(rqstp)); rqstp 338 fs/nfsd/nfs3xdr.c return xdr_argsize_check(rqstp, p); rqstp 342 fs/nfsd/nfs3xdr.c nfs3svc_decode_diropargs(struct svc_rqst *rqstp, __be32 *p) rqstp 344 fs/nfsd/nfs3xdr.c struct nfsd3_diropargs *args = rqstp->rq_argp; rqstp 350 fs/nfsd/nfs3xdr.c return xdr_argsize_check(rqstp, p); rqstp 354 fs/nfsd/nfs3xdr.c nfs3svc_decode_accessargs(struct svc_rqst *rqstp, __be32 *p) rqstp 356 fs/nfsd/nfs3xdr.c struct nfsd3_accessargs *args = rqstp->rq_argp; rqstp 363 fs/nfsd/nfs3xdr.c return xdr_argsize_check(rqstp, p); rqstp 367 fs/nfsd/nfs3xdr.c nfs3svc_decode_readargs(struct svc_rqst *rqstp, __be32 *p) rqstp 369 fs/nfsd/nfs3xdr.c struct nfsd3_readargs *args = rqstp->rq_argp; rqstp 372 fs/nfsd/nfs3xdr.c u32 max_blocksize = svc_max_payload(rqstp); rqstp 385 fs/nfsd/nfs3xdr.c struct page *p = *(rqstp->rq_next_page++); rqstp 387 fs/nfsd/nfs3xdr.c rqstp->rq_vec[v].iov_base = page_address(p); rqstp 388 fs/nfsd/nfs3xdr.c rqstp->rq_vec[v].iov_len = min_t(unsigned int, len, PAGE_SIZE); rqstp 389 fs/nfsd/nfs3xdr.c len -= rqstp->rq_vec[v].iov_len; rqstp 393 fs/nfsd/nfs3xdr.c return xdr_argsize_check(rqstp, p); rqstp 397 fs/nfsd/nfs3xdr.c nfs3svc_decode_writeargs(struct svc_rqst *rqstp, __be32 *p) rqstp 399 fs/nfsd/nfs3xdr.c struct nfsd3_writeargs *args = rqstp->rq_argp; rqstp 401 fs/nfsd/nfs3xdr.c u32 max_blocksize = svc_max_payload(rqstp); rqstp 402 fs/nfsd/nfs3xdr.c struct kvec *head = rqstp->rq_arg.head; rqstp 403 fs/nfsd/nfs3xdr.c struct kvec *tail = rqstp->rq_arg.tail; rqstp 426 fs/nfsd/nfs3xdr.c dlen = head->iov_len + rqstp->rq_arg.page_len + tail->iov_len - hdr; rqstp 449 fs/nfsd/nfs3xdr.c nfs3svc_decode_createargs(struct svc_rqst *rqstp, __be32 *p) rqstp 451 fs/nfsd/nfs3xdr.c struct nfsd3_createargs *args = rqstp->rq_argp; rqstp 460 fs/nfsd/nfs3xdr.c p = decode_sattr3(p, &args->attrs, nfsd_user_namespace(rqstp)); rqstp 470 fs/nfsd/nfs3xdr.c return xdr_argsize_check(rqstp, p); rqstp 474 fs/nfsd/nfs3xdr.c nfs3svc_decode_mkdirargs(struct svc_rqst *rqstp, __be32 *p) rqstp 476 fs/nfsd/nfs3xdr.c struct nfsd3_createargs *args = rqstp->rq_argp; rqstp 481 fs/nfsd/nfs3xdr.c p = decode_sattr3(p, &args->attrs, nfsd_user_namespace(rqstp)); rqstp 483 fs/nfsd/nfs3xdr.c return xdr_argsize_check(rqstp, p); rqstp 487 fs/nfsd/nfs3xdr.c nfs3svc_decode_symlinkargs(struct svc_rqst *rqstp, __be32 *p) rqstp 489 fs/nfsd/nfs3xdr.c struct nfsd3_symlinkargs *args = rqstp->rq_argp; rqstp 496 fs/nfsd/nfs3xdr.c p = decode_sattr3(p, &args->attrs, nfsd_user_namespace(rqstp)); rqstp 501 fs/nfsd/nfs3xdr.c args->first.iov_len = rqstp->rq_arg.head[0].iov_len; rqstp 504 fs/nfsd/nfs3xdr.c dlen = args->first.iov_len + rqstp->rq_arg.page_len + rqstp 505 fs/nfsd/nfs3xdr.c rqstp->rq_arg.tail[0].iov_len; rqstp 512 fs/nfsd/nfs3xdr.c nfs3svc_decode_mknodargs(struct svc_rqst *rqstp, __be32 *p) rqstp 514 fs/nfsd/nfs3xdr.c struct nfsd3_mknodargs *args = rqstp->rq_argp; rqstp 524 fs/nfsd/nfs3xdr.c p = decode_sattr3(p, &args->attrs, nfsd_user_namespace(rqstp)); rqstp 531 fs/nfsd/nfs3xdr.c return xdr_argsize_check(rqstp, p); rqstp 535 fs/nfsd/nfs3xdr.c nfs3svc_decode_renameargs(struct svc_rqst *rqstp, __be32 *p) rqstp 537 fs/nfsd/nfs3xdr.c struct nfsd3_renameargs *args = rqstp->rq_argp; rqstp 545 fs/nfsd/nfs3xdr.c return xdr_argsize_check(rqstp, p); rqstp 549 fs/nfsd/nfs3xdr.c nfs3svc_decode_readlinkargs(struct svc_rqst *rqstp, __be32 *p) rqstp 551 fs/nfsd/nfs3xdr.c struct nfsd3_readlinkargs *args = rqstp->rq_argp; rqstp 556 fs/nfsd/nfs3xdr.c args->buffer = page_address(*(rqstp->rq_next_page++)); rqstp 558 fs/nfsd/nfs3xdr.c return xdr_argsize_check(rqstp, p); rqstp 562 fs/nfsd/nfs3xdr.c nfs3svc_decode_linkargs(struct svc_rqst *rqstp, __be32 *p) rqstp 564 fs/nfsd/nfs3xdr.c struct nfsd3_linkargs *args = rqstp->rq_argp; rqstp 571 fs/nfsd/nfs3xdr.c return xdr_argsize_check(rqstp, p); rqstp 575 fs/nfsd/nfs3xdr.c nfs3svc_decode_readdirargs(struct svc_rqst *rqstp, __be32 *p) rqstp 577 fs/nfsd/nfs3xdr.c struct nfsd3_readdirargs *args = rqstp->rq_argp; rqstp 579 fs/nfsd/nfs3xdr.c u32 max_blocksize = svc_max_payload(rqstp); rqstp 591 fs/nfsd/nfs3xdr.c struct page *p = *(rqstp->rq_next_page++); rqstp 597 fs/nfsd/nfs3xdr.c return xdr_argsize_check(rqstp, p); rqstp 601 fs/nfsd/nfs3xdr.c nfs3svc_decode_readdirplusargs(struct svc_rqst *rqstp, __be32 *p) rqstp 603 fs/nfsd/nfs3xdr.c struct nfsd3_readdirargs *args = rqstp->rq_argp; rqstp 605 fs/nfsd/nfs3xdr.c u32 max_blocksize = svc_max_payload(rqstp); rqstp 617 fs/nfsd/nfs3xdr.c struct page *p = *(rqstp->rq_next_page++); rqstp 623 fs/nfsd/nfs3xdr.c return xdr_argsize_check(rqstp, p); rqstp 627 fs/nfsd/nfs3xdr.c nfs3svc_decode_commitargs(struct svc_rqst *rqstp, __be32 *p) rqstp 629 fs/nfsd/nfs3xdr.c struct nfsd3_commitargs *args = rqstp->rq_argp; rqstp 636 fs/nfsd/nfs3xdr.c return xdr_argsize_check(rqstp, p); rqstp 647 fs/nfsd/nfs3xdr.c nfs3svc_encode_voidres(struct svc_rqst *rqstp, __be32 *p) rqstp 649 fs/nfsd/nfs3xdr.c return xdr_ressize_check(rqstp, p); rqstp 654 fs/nfsd/nfs3xdr.c nfs3svc_encode_attrstat(struct svc_rqst *rqstp, __be32 *p) rqstp 656 fs/nfsd/nfs3xdr.c struct nfsd3_attrstat *resp = rqstp->rq_resp; rqstp 661 fs/nfsd/nfs3xdr.c p = encode_fattr3(rqstp, p, &resp->fh, &resp->stat); rqstp 663 fs/nfsd/nfs3xdr.c return xdr_ressize_check(rqstp, p); rqstp 668 fs/nfsd/nfs3xdr.c nfs3svc_encode_wccstat(struct svc_rqst *rqstp, __be32 *p) rqstp 670 fs/nfsd/nfs3xdr.c struct nfsd3_attrstat *resp = rqstp->rq_resp; rqstp 672 fs/nfsd/nfs3xdr.c p = encode_wcc_data(rqstp, p, &resp->fh); rqstp 673 fs/nfsd/nfs3xdr.c return xdr_ressize_check(rqstp, p); rqstp 678 fs/nfsd/nfs3xdr.c nfs3svc_encode_diropres(struct svc_rqst *rqstp, __be32 *p) rqstp 680 fs/nfsd/nfs3xdr.c struct nfsd3_diropres *resp = rqstp->rq_resp; rqstp 684 fs/nfsd/nfs3xdr.c p = encode_post_op_attr(rqstp, p, &resp->fh); rqstp 686 fs/nfsd/nfs3xdr.c p = encode_post_op_attr(rqstp, p, &resp->dirfh); rqstp 687 fs/nfsd/nfs3xdr.c return xdr_ressize_check(rqstp, p); rqstp 692 fs/nfsd/nfs3xdr.c nfs3svc_encode_accessres(struct svc_rqst *rqstp, __be32 *p) rqstp 694 fs/nfsd/nfs3xdr.c struct nfsd3_accessres *resp = rqstp->rq_resp; rqstp 696 fs/nfsd/nfs3xdr.c p = encode_post_op_attr(rqstp, p, &resp->fh); rqstp 699 fs/nfsd/nfs3xdr.c return xdr_ressize_check(rqstp, p); rqstp 704 fs/nfsd/nfs3xdr.c nfs3svc_encode_readlinkres(struct svc_rqst *rqstp, __be32 *p) rqstp 706 fs/nfsd/nfs3xdr.c struct nfsd3_readlinkres *resp = rqstp->rq_resp; rqstp 708 fs/nfsd/nfs3xdr.c p = encode_post_op_attr(rqstp, p, &resp->fh); rqstp 711 fs/nfsd/nfs3xdr.c xdr_ressize_check(rqstp, p); rqstp 712 fs/nfsd/nfs3xdr.c rqstp->rq_res.page_len = resp->len; rqstp 715 fs/nfsd/nfs3xdr.c rqstp->rq_res.tail[0].iov_base = p; rqstp 717 fs/nfsd/nfs3xdr.c rqstp->rq_res.tail[0].iov_len = 4 - (resp->len&3); rqstp 721 fs/nfsd/nfs3xdr.c return xdr_ressize_check(rqstp, p); rqstp 726 fs/nfsd/nfs3xdr.c nfs3svc_encode_readres(struct svc_rqst *rqstp, __be32 *p) rqstp 728 fs/nfsd/nfs3xdr.c struct nfsd3_readres *resp = rqstp->rq_resp; rqstp 730 fs/nfsd/nfs3xdr.c p = encode_post_op_attr(rqstp, p, &resp->fh); rqstp 735 fs/nfsd/nfs3xdr.c xdr_ressize_check(rqstp, p); rqstp 737 fs/nfsd/nfs3xdr.c rqstp->rq_res.page_len = resp->count; rqstp 740 fs/nfsd/nfs3xdr.c rqstp->rq_res.tail[0].iov_base = p; rqstp 742 fs/nfsd/nfs3xdr.c rqstp->rq_res.tail[0].iov_len = 4 - (resp->count & 3); rqstp 746 fs/nfsd/nfs3xdr.c return xdr_ressize_check(rqstp, p); rqstp 751 fs/nfsd/nfs3xdr.c nfs3svc_encode_writeres(struct svc_rqst *rqstp, __be32 *p) rqstp 753 fs/nfsd/nfs3xdr.c struct nfsd3_writeres *resp = rqstp->rq_resp; rqstp 754 fs/nfsd/nfs3xdr.c struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); rqstp 757 fs/nfsd/nfs3xdr.c p = encode_wcc_data(rqstp, p, &resp->fh); rqstp 766 fs/nfsd/nfs3xdr.c return xdr_ressize_check(rqstp, p); rqstp 771 fs/nfsd/nfs3xdr.c nfs3svc_encode_createres(struct svc_rqst *rqstp, __be32 *p) rqstp 773 fs/nfsd/nfs3xdr.c struct nfsd3_diropres *resp = rqstp->rq_resp; rqstp 778 fs/nfsd/nfs3xdr.c p = encode_post_op_attr(rqstp, p, &resp->fh); rqstp 780 fs/nfsd/nfs3xdr.c p = encode_wcc_data(rqstp, p, &resp->dirfh); rqstp 781 fs/nfsd/nfs3xdr.c return xdr_ressize_check(rqstp, p); rqstp 786 fs/nfsd/nfs3xdr.c nfs3svc_encode_renameres(struct svc_rqst *rqstp, __be32 *p) rqstp 788 fs/nfsd/nfs3xdr.c struct nfsd3_renameres *resp = rqstp->rq_resp; rqstp 790 fs/nfsd/nfs3xdr.c p = encode_wcc_data(rqstp, p, &resp->ffh); rqstp 791 fs/nfsd/nfs3xdr.c p = encode_wcc_data(rqstp, p, &resp->tfh); rqstp 792 fs/nfsd/nfs3xdr.c return xdr_ressize_check(rqstp, p); rqstp 797 fs/nfsd/nfs3xdr.c nfs3svc_encode_linkres(struct svc_rqst *rqstp, __be32 *p) rqstp 799 fs/nfsd/nfs3xdr.c struct nfsd3_linkres *resp = rqstp->rq_resp; rqstp 801 fs/nfsd/nfs3xdr.c p = encode_post_op_attr(rqstp, p, &resp->fh); rqstp 802 fs/nfsd/nfs3xdr.c p = encode_wcc_data(rqstp, p, &resp->tfh); rqstp 803 fs/nfsd/nfs3xdr.c return xdr_ressize_check(rqstp, p); rqstp 808 fs/nfsd/nfs3xdr.c nfs3svc_encode_readdirres(struct svc_rqst *rqstp, __be32 *p) rqstp 810 fs/nfsd/nfs3xdr.c struct nfsd3_readdirres *resp = rqstp->rq_resp; rqstp 812 fs/nfsd/nfs3xdr.c p = encode_post_op_attr(rqstp, p, &resp->fh); rqstp 817 fs/nfsd/nfs3xdr.c xdr_ressize_check(rqstp, p); rqstp 818 fs/nfsd/nfs3xdr.c if (rqstp->rq_res.head[0].iov_len + (2<<2) > PAGE_SIZE) rqstp 820 fs/nfsd/nfs3xdr.c rqstp->rq_res.page_len = (resp->count) << 2; rqstp 823 fs/nfsd/nfs3xdr.c rqstp->rq_res.tail[0].iov_base = p; rqstp 826 fs/nfsd/nfs3xdr.c rqstp->rq_res.tail[0].iov_len = 2<<2; rqstp 829 fs/nfsd/nfs3xdr.c return xdr_ressize_check(rqstp, p); rqstp 893 fs/nfsd/nfs3xdr.c p = encode_post_op_attr(cd->rqstp, p, fh); rqstp 958 fs/nfsd/nfs3xdr.c for (page = cd->rqstp->rq_respages + 1; rqstp 959 fs/nfsd/nfs3xdr.c page < cd->rqstp->rq_next_page; page++) { rqstp 1060 fs/nfsd/nfs3xdr.c nfs3svc_encode_fsstatres(struct svc_rqst *rqstp, __be32 *p) rqstp 1062 fs/nfsd/nfs3xdr.c struct nfsd3_fsstatres *resp = rqstp->rq_resp; rqstp 1077 fs/nfsd/nfs3xdr.c return xdr_ressize_check(rqstp, p); rqstp 1082 fs/nfsd/nfs3xdr.c nfs3svc_encode_fsinfores(struct svc_rqst *rqstp, __be32 *p) rqstp 1084 fs/nfsd/nfs3xdr.c struct nfsd3_fsinfores *resp = rqstp->rq_resp; rqstp 1102 fs/nfsd/nfs3xdr.c return xdr_ressize_check(rqstp, p); rqstp 1107 fs/nfsd/nfs3xdr.c nfs3svc_encode_pathconfres(struct svc_rqst *rqstp, __be32 *p) rqstp 1109 fs/nfsd/nfs3xdr.c struct nfsd3_pathconfres *resp = rqstp->rq_resp; rqstp 1122 fs/nfsd/nfs3xdr.c return xdr_ressize_check(rqstp, p); rqstp 1127 fs/nfsd/nfs3xdr.c nfs3svc_encode_commitres(struct svc_rqst *rqstp, __be32 *p) rqstp 1129 fs/nfsd/nfs3xdr.c struct nfsd3_commitres *resp = rqstp->rq_resp; rqstp 1130 fs/nfsd/nfs3xdr.c struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); rqstp 1133 fs/nfsd/nfs3xdr.c p = encode_wcc_data(rqstp, p, &resp->fh); rqstp 1141 fs/nfsd/nfs3xdr.c return xdr_ressize_check(rqstp, p); rqstp 1148 fs/nfsd/nfs3xdr.c nfs3svc_release_fhandle(struct svc_rqst *rqstp) rqstp 1150 fs/nfsd/nfs3xdr.c struct nfsd3_attrstat *resp = rqstp->rq_resp; rqstp 1156 fs/nfsd/nfs3xdr.c nfs3svc_release_fhandle2(struct svc_rqst *rqstp) rqstp 1158 fs/nfsd/nfs3xdr.c struct nfsd3_fhandle_pair *resp = rqstp->rq_resp; rqstp 129 fs/nfsd/nfs4acl.c nfsd4_get_nfs4_acl(struct svc_rqst *rqstp, struct dentry *dentry, rqstp 755 fs/nfsd/nfs4acl.c nfsd4_set_nfs4_acl(struct svc_rqst *rqstp, struct svc_fh *fhp, rqstp 766 fs/nfsd/nfs4acl.c error = fh_verify(rqstp, fhp, 0, NFSD_MAY_SATTR); rqstp 503 fs/nfsd/nfs4callback.c static int nfs4_xdr_dec_cb_recall(struct rpc_rqst *rqstp, rqstp 593 fs/nfsd/nfs4callback.c static int nfs4_xdr_dec_cb_layout(struct rpc_rqst *rqstp, rqstp 651 fs/nfsd/nfs4callback.c static int nfs4_xdr_dec_cb_notify_lock(struct rpc_rqst *rqstp, rqstp 746 fs/nfsd/nfs4callback.c static int nfs4_xdr_dec_cb_offload(struct rpc_rqst *rqstp, rqstp 492 fs/nfsd/nfs4idmap.c idmap_lookup(struct svc_rqst *rqstp, rqstp 502 fs/nfsd/nfs4idmap.c ret = cache_check(detail, &(*item)->h, &rqstp->rq_chandle); rqstp 515 fs/nfsd/nfs4idmap.c rqst_authname(struct svc_rqst *rqstp) rqstp 519 fs/nfsd/nfs4idmap.c clp = rqstp->rq_gssclient ? rqstp->rq_gssclient : rqstp->rq_client; rqstp 524 fs/nfsd/nfs4idmap.c idmap_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen, rqstp 531 fs/nfsd/nfs4idmap.c struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); rqstp 537 fs/nfsd/nfs4idmap.c strlcpy(key.authname, rqst_authname(rqstp), sizeof(key.authname)); rqstp 538 fs/nfsd/nfs4idmap.c ret = idmap_lookup(rqstp, nametoid_lookup, &key, nn->nametoid_cache, &item); rqstp 563 fs/nfsd/nfs4idmap.c struct svc_rqst *rqstp, int type, u32 id) rqstp 571 fs/nfsd/nfs4idmap.c struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); rqstp 573 fs/nfsd/nfs4idmap.c strlcpy(key.authname, rqst_authname(rqstp), sizeof(key.authname)); rqstp 574 fs/nfsd/nfs4idmap.c ret = idmap_lookup(rqstp, idtoname_lookup, &key, nn->idtoname_cache, &item); rqstp 590 fs/nfsd/nfs4idmap.c numeric_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen, u32 *id) rqstp 606 fs/nfsd/nfs4idmap.c do_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen, u32 *id) rqstp 608 fs/nfsd/nfs4idmap.c if (nfs4_disable_idmapping && rqstp->rq_cred.cr_flavor < RPC_AUTH_GSS) rqstp 609 fs/nfsd/nfs4idmap.c if (numeric_name_to_id(rqstp, type, name, namelen, id)) rqstp 615 fs/nfsd/nfs4idmap.c return idmap_name_to_id(rqstp, type, name, namelen, id); rqstp 619 fs/nfsd/nfs4idmap.c struct svc_rqst *rqstp, int type, u32 id) rqstp 621 fs/nfsd/nfs4idmap.c if (nfs4_disable_idmapping && rqstp->rq_cred.cr_flavor < RPC_AUTH_GSS) rqstp 623 fs/nfsd/nfs4idmap.c return idmap_id_to_name(xdr, rqstp, type, id); rqstp 627 fs/nfsd/nfs4idmap.c nfsd_map_name_to_uid(struct svc_rqst *rqstp, const char *name, size_t namelen, rqstp 636 fs/nfsd/nfs4idmap.c status = do_name_to_id(rqstp, IDMAP_TYPE_USER, name, namelen, &id); rqstp 637 fs/nfsd/nfs4idmap.c *uid = make_kuid(nfsd_user_namespace(rqstp), id); rqstp 644 fs/nfsd/nfs4idmap.c nfsd_map_name_to_gid(struct svc_rqst *rqstp, const char *name, size_t namelen, rqstp 653 fs/nfsd/nfs4idmap.c status = do_name_to_id(rqstp, IDMAP_TYPE_GROUP, name, namelen, &id); rqstp 654 fs/nfsd/nfs4idmap.c *gid = make_kgid(nfsd_user_namespace(rqstp), id); rqstp 660 fs/nfsd/nfs4idmap.c __be32 nfsd4_encode_user(struct xdr_stream *xdr, struct svc_rqst *rqstp, rqstp 663 fs/nfsd/nfs4idmap.c u32 id = from_kuid_munged(nfsd_user_namespace(rqstp), uid); rqstp 664 fs/nfsd/nfs4idmap.c return encode_name_from_id(xdr, rqstp, IDMAP_TYPE_USER, id); rqstp 667 fs/nfsd/nfs4idmap.c __be32 nfsd4_encode_group(struct xdr_stream *xdr, struct svc_rqst *rqstp, rqstp 670 fs/nfsd/nfs4idmap.c u32 id = from_kgid_munged(nfsd_user_namespace(rqstp), gid); rqstp 671 fs/nfsd/nfs4idmap.c return encode_name_from_id(xdr, rqstp, IDMAP_TYPE_GROUP, id); rqstp 265 fs/nfsd/nfs4layouts.c nfsd4_preprocess_layout_stateid(struct svc_rqst *rqstp, rqstp 278 fs/nfsd/nfs4layouts.c net_generic(SVC_NET(rqstp), nfsd_net_id)); rqstp 489 fs/nfsd/nfs4layouts.c nfsd4_return_file_layouts(struct svc_rqst *rqstp, rqstp 499 fs/nfsd/nfs4layouts.c nfserr = nfsd4_preprocess_layout_stateid(rqstp, cstate, &lrp->lr_sid, rqstp 532 fs/nfsd/nfs4layouts.c nfsd4_return_client_layouts(struct svc_rqst *rqstp, rqstp 96 fs/nfsd/nfs4proc.c check_attr_support(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 118 fs/nfsd/nfs4proc.c nfsd4_check_open_attributes(struct svc_rqst *rqstp, rqstp 126 fs/nfsd/nfs4proc.c status = check_attr_support(rqstp, cstate, rqstp 129 fs/nfsd/nfs4proc.c status = check_attr_support(rqstp, cstate, rqstp 150 fs/nfsd/nfs4proc.c do_set_nfs4_acl(struct svc_rqst *rqstp, struct svc_fh *fhp, rqstp 155 fs/nfsd/nfs4proc.c status = nfsd4_set_nfs4_acl(rqstp, fhp, acl); rqstp 176 fs/nfsd/nfs4proc.c do_open_permission(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open, int accmode) rqstp 193 fs/nfsd/nfs4proc.c status = fh_verify(rqstp, current_fh, S_IFREG, accmode); rqstp 225 fs/nfsd/nfs4proc.c do_open_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh **resfh) rqstp 258 fs/nfsd/nfs4proc.c status = do_nfsd_create(rqstp, current_fh, open->op_fname.data, rqstp 283 fs/nfsd/nfs4proc.c status = nfsd_lookup(rqstp, current_fh, rqstp 292 fs/nfsd/nfs4proc.c do_set_nfs4_acl(rqstp, *resfh, open->op_acl, open->op_bmval); rqstp 299 fs/nfsd/nfs4proc.c status = do_open_permission(rqstp, *resfh, open, accmode); rqstp 306 fs/nfsd/nfs4proc.c do_open_fhandle(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open) rqstp 334 fs/nfsd/nfs4proc.c status = do_open_permission(rqstp, current_fh, open, accmode); rqstp 350 fs/nfsd/nfs4proc.c nfsd4_open(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 356 fs/nfsd/nfs4proc.c struct net *net = SVC_NET(rqstp); rqstp 389 fs/nfsd/nfs4proc.c status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); rqstp 403 fs/nfsd/nfs4proc.c status = nfsd4_check_open_attributes(rqstp, cstate, open); rqstp 419 fs/nfsd/nfs4proc.c status = do_open_lookup(rqstp, cstate, open, &resfh); rqstp 433 fs/nfsd/nfs4proc.c status = do_open_fhandle(rqstp, cstate, open); rqstp 455 fs/nfsd/nfs4proc.c status = nfsd4_process_open2(rqstp, resfh, open); rqstp 478 fs/nfsd/nfs4proc.c static __be32 nfsd4_open_omfg(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_op *op) rqstp 487 fs/nfsd/nfs4proc.c return nfsd4_open(rqstp, cstate, &op->u); rqstp 494 fs/nfsd/nfs4proc.c nfsd4_getfh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 502 fs/nfsd/nfs4proc.c nfsd4_putfh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 511 fs/nfsd/nfs4proc.c return fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_BYPASS_GSS); rqstp 515 fs/nfsd/nfs4proc.c nfsd4_putrootfh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 521 fs/nfsd/nfs4proc.c status = exp_pseudoroot(rqstp, &cstate->current_fh); rqstp 526 fs/nfsd/nfs4proc.c nfsd4_restorefh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 541 fs/nfsd/nfs4proc.c nfsd4_savefh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 556 fs/nfsd/nfs4proc.c nfsd4_access(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 565 fs/nfsd/nfs4proc.c return nfsd_access(rqstp, &cstate->current_fh, &access->ac_resp_access, rqstp 579 fs/nfsd/nfs4proc.c nfsd4_commit(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 584 fs/nfsd/nfs4proc.c gen_boot_verifier(&commit->co_verf, SVC_NET(rqstp)); rqstp 585 fs/nfsd/nfs4proc.c return nfsd_commit(rqstp, &cstate->current_fh, commit->co_offset, rqstp 590 fs/nfsd/nfs4proc.c nfsd4_create(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 600 fs/nfsd/nfs4proc.c status = fh_verify(rqstp, &cstate->current_fh, S_IFDIR, NFSD_MAY_NOP); rqstp 604 fs/nfsd/nfs4proc.c status = check_attr_support(rqstp, cstate, create->cr_bmval, rqstp 612 fs/nfsd/nfs4proc.c status = nfsd_symlink(rqstp, &cstate->current_fh, rqstp 623 fs/nfsd/nfs4proc.c status = nfsd_create(rqstp, &cstate->current_fh, rqstp 634 fs/nfsd/nfs4proc.c status = nfsd_create(rqstp, &cstate->current_fh, rqstp 640 fs/nfsd/nfs4proc.c status = nfsd_create(rqstp, &cstate->current_fh, rqstp 646 fs/nfsd/nfs4proc.c status = nfsd_create(rqstp, &cstate->current_fh, rqstp 653 fs/nfsd/nfs4proc.c status = nfsd_create(rqstp, &cstate->current_fh, rqstp 669 fs/nfsd/nfs4proc.c do_set_nfs4_acl(rqstp, &resfh, create->cr_acl, rqstp 683 fs/nfsd/nfs4proc.c nfsd4_getattr(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 689 fs/nfsd/nfs4proc.c status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); rqstp 705 fs/nfsd/nfs4proc.c nfsd4_link(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 711 fs/nfsd/nfs4proc.c status = nfsd_link(rqstp, &cstate->current_fh, rqstp 718 fs/nfsd/nfs4proc.c static __be32 nfsd4_do_lookupp(struct svc_rqst *rqstp, struct svc_fh *fh) rqstp 724 fs/nfsd/nfs4proc.c ret = exp_pseudoroot(rqstp, &tmp_fh); rqstp 732 fs/nfsd/nfs4proc.c return nfsd_lookup(rqstp, fh, "..", 2, fh); rqstp 736 fs/nfsd/nfs4proc.c nfsd4_lookupp(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 739 fs/nfsd/nfs4proc.c return nfsd4_do_lookupp(rqstp, &cstate->current_fh); rqstp 743 fs/nfsd/nfs4proc.c nfsd4_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 746 fs/nfsd/nfs4proc.c return nfsd_lookup(rqstp, &cstate->current_fh, rqstp 752 fs/nfsd/nfs4proc.c nfsd4_read(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 762 fs/nfsd/nfs4proc.c trace_nfsd_read_start(rqstp, &cstate->current_fh, rqstp 773 fs/nfsd/nfs4proc.c if (!nfsd4_last_compound_op(rqstp)) rqstp 774 fs/nfsd/nfs4proc.c clear_bit(RQ_SPLICE_OK, &rqstp->rq_flags); rqstp 777 fs/nfsd/nfs4proc.c status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, rqstp 786 fs/nfsd/nfs4proc.c read->rd_rqstp = rqstp; rqstp 802 fs/nfsd/nfs4proc.c nfsd4_readdir(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 822 fs/nfsd/nfs4proc.c readdir->rd_rqstp = rqstp; rqstp 828 fs/nfsd/nfs4proc.c nfsd4_readlink(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 831 fs/nfsd/nfs4proc.c u->readlink.rl_rqstp = rqstp; rqstp 837 fs/nfsd/nfs4proc.c nfsd4_remove(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 843 fs/nfsd/nfs4proc.c if (opens_in_grace(SVC_NET(rqstp))) rqstp 845 fs/nfsd/nfs4proc.c status = nfsd_unlink(rqstp, &cstate->current_fh, 0, rqstp 855 fs/nfsd/nfs4proc.c nfsd4_rename(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 861 fs/nfsd/nfs4proc.c if (opens_in_grace(SVC_NET(rqstp))) rqstp 863 fs/nfsd/nfs4proc.c status = nfsd_rename(rqstp, &cstate->save_fh, rename->rn_sname, rqstp 874 fs/nfsd/nfs4proc.c nfsd4_secinfo(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 882 fs/nfsd/nfs4proc.c err = fh_verify(rqstp, &cstate->current_fh, S_IFDIR, NFSD_MAY_EXEC); rqstp 885 fs/nfsd/nfs4proc.c err = nfsd_lookup_dentry(rqstp, &cstate->current_fh, rqstp 904 fs/nfsd/nfs4proc.c nfsd4_secinfo_no_name(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 913 fs/nfsd/nfs4proc.c err = nfsd4_do_lookupp(rqstp, &cstate->current_fh); rqstp 941 fs/nfsd/nfs4proc.c nfsd4_setattr(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 949 fs/nfsd/nfs4proc.c status = nfs4_preprocess_stateid_op(rqstp, cstate, rqstp 962 fs/nfsd/nfs4proc.c status = check_attr_support(rqstp, cstate, setattr->sa_bmval, rqstp 968 fs/nfsd/nfs4proc.c status = nfsd4_set_nfs4_acl(rqstp, &cstate->current_fh, rqstp 973 fs/nfsd/nfs4proc.c status = nfsd4_set_nfs4_label(rqstp, &cstate->current_fh, rqstp 977 fs/nfsd/nfs4proc.c status = nfsd_setattr(rqstp, &cstate->current_fh, &setattr->sa_iattr, rqstp 985 fs/nfsd/nfs4proc.c nfsd4_write(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 999 fs/nfsd/nfs4proc.c trace_nfsd_write_start(rqstp, &cstate->current_fh, rqstp 1001 fs/nfsd/nfs4proc.c status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, rqstp 1009 fs/nfsd/nfs4proc.c gen_boot_verifier(&write->wr_verifier, SVC_NET(rqstp)); rqstp 1011 fs/nfsd/nfs4proc.c nvecs = svc_fill_write_vector(rqstp, write->wr_pagelist, rqstp 1013 fs/nfsd/nfs4proc.c WARN_ON_ONCE(nvecs > ARRAY_SIZE(rqstp->rq_vec)); rqstp 1015 fs/nfsd/nfs4proc.c status = nfsd_vfs_write(rqstp, &cstate->current_fh, nf->nf_file, rqstp 1016 fs/nfsd/nfs4proc.c write->wr_offset, rqstp->rq_vec, nvecs, &cnt, rqstp 1021 fs/nfsd/nfs4proc.c trace_nfsd_write_done(rqstp, &cstate->current_fh, rqstp 1027 fs/nfsd/nfs4proc.c nfsd4_verify_copy(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 1036 fs/nfsd/nfs4proc.c status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->save_fh, rqstp 1043 fs/nfsd/nfs4proc.c status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, rqstp 1067 fs/nfsd/nfs4proc.c nfsd4_clone(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 1074 fs/nfsd/nfs4proc.c status = nfsd4_verify_copy(rqstp, cstate, &clone->cl_src_stateid, &src, rqstp 1255 fs/nfsd/nfs4proc.c nfsd4_copy(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 1262 fs/nfsd/nfs4proc.c status = nfsd4_verify_copy(rqstp, cstate, ©->cp_src_stateid, rqstp 1272 fs/nfsd/nfs4proc.c struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); rqstp 1324 fs/nfsd/nfs4proc.c nfsd4_offload_cancel(struct svc_rqst *rqstp, rqstp 1343 fs/nfsd/nfs4proc.c nfsd4_fallocate(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 1349 fs/nfsd/nfs4proc.c status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, rqstp 1357 fs/nfsd/nfs4proc.c status = nfsd4_vfs_fallocate(rqstp, &cstate->current_fh, nf->nf_file, rqstp 1365 fs/nfsd/nfs4proc.c nfsd4_offload_status(struct svc_rqst *rqstp, rqstp 1385 fs/nfsd/nfs4proc.c nfsd4_allocate(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 1388 fs/nfsd/nfs4proc.c return nfsd4_fallocate(rqstp, cstate, &u->allocate, 0); rqstp 1392 fs/nfsd/nfs4proc.c nfsd4_deallocate(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 1395 fs/nfsd/nfs4proc.c return nfsd4_fallocate(rqstp, cstate, &u->deallocate, rqstp 1400 fs/nfsd/nfs4proc.c nfsd4_seek(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 1408 fs/nfsd/nfs4proc.c status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, rqstp 1449 fs/nfsd/nfs4proc.c _nfsd4_verify(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 1456 fs/nfsd/nfs4proc.c status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); rqstp 1460 fs/nfsd/nfs4proc.c status = check_attr_support(rqstp, cstate, verify->ve_bmval, NULL); rqstp 1483 fs/nfsd/nfs4proc.c rqstp, 0); rqstp 1507 fs/nfsd/nfs4proc.c nfsd4_nverify(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 1512 fs/nfsd/nfs4proc.c status = _nfsd4_verify(rqstp, cstate, &u->verify); rqstp 1517 fs/nfsd/nfs4proc.c nfsd4_verify(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 1522 fs/nfsd/nfs4proc.c status = _nfsd4_verify(rqstp, cstate, &u->nverify); rqstp 1546 fs/nfsd/nfs4proc.c nfsd4_getdeviceinfo(struct svc_rqst *rqstp, rqstp 1568 fs/nfsd/nfs4proc.c exp = rqst_exp_find(rqstp, map->fsid_type, map->fsid); rqstp 1582 fs/nfsd/nfs4proc.c rqstp, cstate->session->se_client, gdp); rqstp 1598 fs/nfsd/nfs4proc.c nfsd4_layoutget(struct svc_rqst *rqstp, rqstp 1622 fs/nfsd/nfs4proc.c nfserr = fh_verify(rqstp, current_fh, 0, accmode); rqstp 1652 fs/nfsd/nfs4proc.c nfserr = nfsd4_preprocess_layout_stateid(rqstp, cstate, &lgp->lg_sid, rqstp 1684 fs/nfsd/nfs4proc.c nfsd4_layoutcommit(struct svc_rqst *rqstp, rqstp 1696 fs/nfsd/nfs4proc.c nfserr = fh_verify(rqstp, current_fh, 0, NFSD_MAY_WRITE); rqstp 1720 fs/nfsd/nfs4proc.c nfserr = nfsd4_preprocess_layout_stateid(rqstp, cstate, &lcp->lc_sid, rqstp 1748 fs/nfsd/nfs4proc.c nfsd4_layoutreturn(struct svc_rqst *rqstp, rqstp 1755 fs/nfsd/nfs4proc.c nfserr = fh_verify(rqstp, current_fh, 0, NFSD_MAY_NOP); rqstp 1777 fs/nfsd/nfs4proc.c nfserr = nfsd4_return_file_layouts(rqstp, cstate, lrp); rqstp 1781 fs/nfsd/nfs4proc.c nfserr = nfsd4_return_client_layouts(rqstp, cstate, lrp); rqstp 1798 fs/nfsd/nfs4proc.c nfsd4_proc_null(struct svc_rqst *rqstp) rqstp 1863 fs/nfsd/nfs4proc.c static bool need_wrongsec_check(struct svc_rqst *rqstp) rqstp 1865 fs/nfsd/nfs4proc.c struct nfsd4_compoundres *resp = rqstp->rq_resp; rqstp 1866 fs/nfsd/nfs4proc.c struct nfsd4_compoundargs *argp = rqstp->rq_argp; rqstp 1896 fs/nfsd/nfs4proc.c static void svcxdr_init_encode(struct svc_rqst *rqstp, rqstp 1900 fs/nfsd/nfs4proc.c struct xdr_buf *buf = &rqstp->rq_res; rqstp 1906 fs/nfsd/nfs4proc.c xdr->end = head->iov_base + PAGE_SIZE - rqstp->rq_auth_slack; rqstp 1911 fs/nfsd/nfs4proc.c buf->buflen = PAGE_SIZE * (1 + rqstp->rq_page_end - buf->pages) rqstp 1912 fs/nfsd/nfs4proc.c - rqstp->rq_auth_slack; rqstp 1919 fs/nfsd/nfs4proc.c nfsd4_proc_compound(struct svc_rqst *rqstp) rqstp 1921 fs/nfsd/nfs4proc.c struct nfsd4_compoundargs *args = rqstp->rq_argp; rqstp 1922 fs/nfsd/nfs4proc.c struct nfsd4_compoundres *resp = rqstp->rq_resp; rqstp 1927 fs/nfsd/nfs4proc.c struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); rqstp 1930 fs/nfsd/nfs4proc.c svcxdr_init_encode(rqstp, resp); rqstp 1936 fs/nfsd/nfs4proc.c resp->rqstp = rqstp; rqstp 1944 fs/nfsd/nfs4proc.c clear_bit(RQ_USEDEFERRAL, &rqstp->rq_flags); rqstp 1964 fs/nfsd/nfs4proc.c trace_nfsd_compound(rqstp, args->opcnt); rqstp 1975 fs/nfsd/nfs4proc.c op->status = nfsd4_open_omfg(rqstp, cstate, op); rqstp 1998 fs/nfsd/nfs4proc.c u32 plen = op->opdesc->op_rsize_bop(rqstp, op); rqstp 2013 fs/nfsd/nfs4proc.c op->status = op->opdesc->op_func(rqstp, cstate, &op->u); rqstp 2028 fs/nfsd/nfs4proc.c if (need_wrongsec_check(rqstp)) rqstp 2029 fs/nfsd/nfs4proc.c op->status = check_nfsd_access(current_fh->fh_export, rqstp); rqstp 2054 fs/nfsd/nfs4proc.c set_bit(RQ_USEDEFERRAL, &rqstp->rq_flags); rqstp 2077 fs/nfsd/nfs4proc.c static inline u32 nfsd4_only_status_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) rqstp 2082 fs/nfsd/nfs4proc.c static inline u32 nfsd4_status_stateid_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) rqstp 2087 fs/nfsd/nfs4proc.c static inline u32 nfsd4_access_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) rqstp 2093 fs/nfsd/nfs4proc.c static inline u32 nfsd4_commit_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) rqstp 2098 fs/nfsd/nfs4proc.c static inline u32 nfsd4_create_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) rqstp 2109 fs/nfsd/nfs4proc.c static inline u32 nfsd4_getattr_rsize(struct svc_rqst *rqstp, rqstp 2117 fs/nfsd/nfs4proc.c return svc_max_payload(rqstp); rqstp 2119 fs/nfsd/nfs4proc.c return svc_max_payload(rqstp); rqstp 2147 fs/nfsd/nfs4proc.c static inline u32 nfsd4_getfh_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) rqstp 2152 fs/nfsd/nfs4proc.c static inline u32 nfsd4_link_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) rqstp 2158 fs/nfsd/nfs4proc.c static inline u32 nfsd4_lock_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) rqstp 2164 fs/nfsd/nfs4proc.c static inline u32 nfsd4_open_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) rqstp 2172 fs/nfsd/nfs4proc.c static inline u32 nfsd4_read_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) rqstp 2176 fs/nfsd/nfs4proc.c maxcount = svc_max_payload(rqstp); rqstp 2182 fs/nfsd/nfs4proc.c static inline u32 nfsd4_readdir_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) rqstp 2186 fs/nfsd/nfs4proc.c maxcount = svc_max_payload(rqstp); rqstp 2193 fs/nfsd/nfs4proc.c static inline u32 nfsd4_readlink_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) rqstp 2198 fs/nfsd/nfs4proc.c static inline u32 nfsd4_remove_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) rqstp 2204 fs/nfsd/nfs4proc.c static inline u32 nfsd4_rename_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) rqstp 2210 fs/nfsd/nfs4proc.c static inline u32 nfsd4_sequence_rsize(struct svc_rqst *rqstp, rqstp 2217 fs/nfsd/nfs4proc.c static inline u32 nfsd4_test_stateid_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) rqstp 2223 fs/nfsd/nfs4proc.c static inline u32 nfsd4_setattr_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) rqstp 2228 fs/nfsd/nfs4proc.c static inline u32 nfsd4_secinfo_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) rqstp 2234 fs/nfsd/nfs4proc.c static inline u32 nfsd4_setclientid_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) rqstp 2240 fs/nfsd/nfs4proc.c static inline u32 nfsd4_write_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) rqstp 2245 fs/nfsd/nfs4proc.c static inline u32 nfsd4_exchange_id_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) rqstp 2259 fs/nfsd/nfs4proc.c static inline u32 nfsd4_bind_conn_to_session_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) rqstp 2266 fs/nfsd/nfs4proc.c static inline u32 nfsd4_create_session_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) rqstp 2275 fs/nfsd/nfs4proc.c static inline u32 nfsd4_copy_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) rqstp 2287 fs/nfsd/nfs4proc.c static inline u32 nfsd4_offload_status_rsize(struct svc_rqst *rqstp, rqstp 2296 fs/nfsd/nfs4proc.c static inline u32 nfsd4_getdeviceinfo_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) rqstp 2300 fs/nfsd/nfs4proc.c maxcount = svc_max_payload(rqstp); rqstp 2314 fs/nfsd/nfs4proc.c static inline u32 nfsd4_layoutget_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) rqstp 2323 fs/nfsd/nfs4proc.c static inline u32 nfsd4_layoutcommit_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) rqstp 2330 fs/nfsd/nfs4proc.c static inline u32 nfsd4_layoutreturn_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) rqstp 2339 fs/nfsd/nfs4proc.c static inline u32 nfsd4_seek_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) rqstp 2731 fs/nfsd/nfs4proc.c bool nfsd4_spo_must_allow(struct svc_rqst *rqstp) rqstp 2733 fs/nfsd/nfs4proc.c struct nfsd4_compoundres *resp = rqstp->rq_resp; rqstp 2734 fs/nfsd/nfs4proc.c struct nfsd4_compoundargs *argp = rqstp->rq_argp; rqstp 2751 fs/nfsd/nfs4proc.c nfsd4_mach_creds_match(cstate->clp, rqstp)) { rqstp 2760 fs/nfsd/nfs4proc.c int nfsd4_max_reply(struct svc_rqst *rqstp, struct nfsd4_op *op) rqstp 2766 fs/nfsd/nfs4proc.c return OPDESC(op)->op_rsize_bop(rqstp, op); rqstp 1674 fs/nfsd/nfs4state.c static struct nfsd4_conn *alloc_conn(struct svc_rqst *rqstp, u32 flags) rqstp 1681 fs/nfsd/nfs4state.c svc_xprt_get(rqstp->rq_xprt); rqstp 1682 fs/nfsd/nfs4state.c conn->cn_xprt = rqstp->rq_xprt; rqstp 1709 fs/nfsd/nfs4state.c static void nfsd4_init_conn(struct svc_rqst *rqstp, struct nfsd4_conn *conn, struct nfsd4_session *ses) rqstp 1722 fs/nfsd/nfs4state.c static struct nfsd4_conn *alloc_conn_from_crses(struct svc_rqst *rqstp, struct nfsd4_create_session *cses) rqstp 1728 fs/nfsd/nfs4state.c return alloc_conn(rqstp, dir); rqstp 1764 fs/nfsd/nfs4state.c static void init_session(struct svc_rqst *rqstp, struct nfsd4_session *new, struct nfs4_client *clp, struct nfsd4_create_session *cses) rqstp 1767 fs/nfsd/nfs4state.c struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); rqstp 1786 fs/nfsd/nfs4state.c struct sockaddr *sa = svc_addr(rqstp); rqstp 2182 fs/nfsd/nfs4state.c static bool svc_rqst_integrity_protected(struct svc_rqst *rqstp) rqstp 2184 fs/nfsd/nfs4state.c struct svc_cred *cr = &rqstp->rq_cred; rqstp 2194 fs/nfsd/nfs4state.c bool nfsd4_mach_creds_match(struct nfs4_client *cl, struct svc_rqst *rqstp) rqstp 2196 fs/nfsd/nfs4state.c struct svc_cred *cr = &rqstp->rq_cred; rqstp 2202 fs/nfsd/nfs4state.c if (!svc_rqst_integrity_protected(rqstp)) rqstp 2597 fs/nfsd/nfs4state.c struct svc_rqst *rqstp, nfs4_verifier *verf) rqstp 2600 fs/nfsd/nfs4state.c struct sockaddr *sa = svc_addr(rqstp); rqstp 2602 fs/nfsd/nfs4state.c struct net *net = SVC_NET(rqstp); rqstp 2609 fs/nfsd/nfs4state.c ret = copy_cred(&clp->cl_cred, &rqstp->rq_cred); rqstp 2759 fs/nfsd/nfs4state.c gen_callback(struct nfs4_client *clp, struct nfsd4_setclientid *se, struct svc_rqst *rqstp) rqstp 2762 fs/nfsd/nfs4state.c struct sockaddr *sa = svc_addr(rqstp); rqstp 2789 fs/nfsd/nfs4state.c memcpy(&conn->cb_saddr, &rqstp->rq_daddr, rqstp->rq_daddrlen); rqstp 2817 fs/nfsd/nfs4state.c copy_cred(&slot->sl_cred, &resp->rqstp->rq_cred); rqstp 2883 fs/nfsd/nfs4state.c status = nfsd4_enc_sequence_replay(resp->rqstp->rq_argp, resp); rqstp 2957 fs/nfsd/nfs4state.c nfsd4_exchange_id(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 2966 fs/nfsd/nfs4state.c struct sockaddr *sa = svc_addr(rqstp); rqstp 2968 fs/nfsd/nfs4state.c struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); rqstp 2973 fs/nfsd/nfs4state.c __func__, rqstp, exid, exid->clname.len, exid->clname.data, rqstp 2979 fs/nfsd/nfs4state.c new = create_client(exid->clname, rqstp, &verf); rqstp 3004 fs/nfsd/nfs4state.c if (!svc_rqst_integrity_protected(rqstp)) { rqstp 3033 fs/nfsd/nfs4state.c bool creds_match = same_creds(&conf->cl_cred, &rqstp->rq_cred); rqstp 3041 fs/nfsd/nfs4state.c if (!nfsd4_mach_creds_match(conf, rqstp)) { rqstp 3255 fs/nfsd/nfs4state.c nfsd4_create_session(struct svc_rqst *rqstp, rqstp 3259 fs/nfsd/nfs4state.c struct sockaddr *sa = svc_addr(rqstp); rqstp 3266 fs/nfsd/nfs4state.c struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); rqstp 3283 fs/nfsd/nfs4state.c conn = alloc_conn_from_crses(rqstp, cr_ses); rqstp 3294 fs/nfsd/nfs4state.c if (!nfsd4_mach_creds_match(conf, rqstp)) rqstp 3304 fs/nfsd/nfs4state.c if (!same_creds(&unconf->cl_cred, &rqstp->rq_cred) || rqstp 3310 fs/nfsd/nfs4state.c if (!nfsd4_mach_creds_match(unconf, rqstp)) rqstp 3339 fs/nfsd/nfs4state.c init_session(rqstp, new, conf, cr_ses); rqstp 3351 fs/nfsd/nfs4state.c nfsd4_init_conn(rqstp, conn, new); rqstp 3382 fs/nfsd/nfs4state.c __be32 nfsd4_backchannel_ctl(struct svc_rqst *rqstp, rqstp 3388 fs/nfsd/nfs4state.c struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); rqstp 3404 fs/nfsd/nfs4state.c __be32 nfsd4_bind_conn_to_session(struct svc_rqst *rqstp, rqstp 3412 fs/nfsd/nfs4state.c struct net *net = SVC_NET(rqstp); rqstp 3415 fs/nfsd/nfs4state.c if (!nfsd4_last_compound_op(rqstp)) rqstp 3423 fs/nfsd/nfs4state.c if (!nfsd4_mach_creds_match(session->se_client, rqstp)) rqstp 3428 fs/nfsd/nfs4state.c conn = alloc_conn(rqstp, bcts->dir); rqstp 3432 fs/nfsd/nfs4state.c nfsd4_init_conn(rqstp, conn, session); rqstp 3529 fs/nfsd/nfs4state.c static bool nfsd4_session_too_many_ops(struct svc_rqst *rqstp, struct nfsd4_session *session) rqstp 3531 fs/nfsd/nfs4state.c struct nfsd4_compoundargs *args = rqstp->rq_argp; rqstp 3536 fs/nfsd/nfs4state.c static bool nfsd4_request_too_big(struct svc_rqst *rqstp, rqstp 3539 fs/nfsd/nfs4state.c struct xdr_buf *xb = &rqstp->rq_arg; rqstp 3544 fs/nfsd/nfs4state.c static bool replay_matches_cache(struct svc_rqst *rqstp, rqstp 3547 fs/nfsd/nfs4state.c struct nfsd4_compoundargs *argp = rqstp->rq_argp; rqstp 3566 fs/nfsd/nfs4state.c if (!same_creds(&rqstp->rq_cred, &slot->sl_cred)) rqstp 3578 fs/nfsd/nfs4state.c nfsd4_sequence(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 3582 fs/nfsd/nfs4state.c struct nfsd4_compoundres *resp = rqstp->rq_resp; rqstp 3590 fs/nfsd/nfs4state.c struct net *net = SVC_NET(rqstp); rqstp 3600 fs/nfsd/nfs4state.c conn = alloc_conn(rqstp, NFS4_CDFC4_FORE); rqstp 3611 fs/nfsd/nfs4state.c if (nfsd4_session_too_many_ops(rqstp, session)) rqstp 3615 fs/nfsd/nfs4state.c if (nfsd4_request_too_big(rqstp, session)) rqstp 3637 fs/nfsd/nfs4state.c if (!replay_matches_cache(rqstp, seq, slot)) rqstp 3661 fs/nfsd/nfs4state.c if (xdr_restrict_buflen(xdr, buflen - rqstp->rq_auth_slack)) rqstp 3663 fs/nfsd/nfs4state.c svc_reserve(rqstp, buflen); rqstp 3718 fs/nfsd/nfs4state.c nfsd4_destroy_clientid(struct svc_rqst *rqstp, rqstp 3726 fs/nfsd/nfs4state.c struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); rqstp 3748 fs/nfsd/nfs4state.c if (!nfsd4_mach_creds_match(clp, rqstp)) { rqstp 3762 fs/nfsd/nfs4state.c nfsd4_reclaim_complete(struct svc_rqst *rqstp, rqstp 3802 fs/nfsd/nfs4state.c nfsd4_setclientid(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 3811 fs/nfsd/nfs4state.c struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); rqstp 3813 fs/nfsd/nfs4state.c new = create_client(clname, rqstp, &clverifier); rqstp 3824 fs/nfsd/nfs4state.c if (!same_creds(&conf->cl_cred, &rqstp->rq_cred)) { rqstp 3843 fs/nfsd/nfs4state.c gen_callback(new, setclid, rqstp); rqstp 3861 fs/nfsd/nfs4state.c nfsd4_setclientid_confirm(struct svc_rqst *rqstp, rqstp 3872 fs/nfsd/nfs4state.c struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); rqstp 3888 fs/nfsd/nfs4state.c if (unconf && !same_creds(&unconf->cl_cred, &rqstp->rq_cred)) rqstp 3890 fs/nfsd/nfs4state.c if (conf && !same_creds(&conf->cl_cred, &rqstp->rq_cred)) rqstp 4666 fs/nfsd/nfs4state.c nfsd4_truncate(struct svc_rqst *rqstp, struct svc_fh *fh, rqstp 4677 fs/nfsd/nfs4state.c return nfsd_setattr(rqstp, fh, &iattr, 0, (time_t)0); rqstp 4680 fs/nfsd/nfs4state.c static __be32 nfs4_get_vfs_file(struct svc_rqst *rqstp, struct nfs4_file *fp, rqstp 4720 fs/nfsd/nfs4state.c status = nfsd_file_acquire(rqstp, cur_fh, access, &nf); rqstp 4733 fs/nfsd/nfs4state.c status = nfsd4_truncate(rqstp, cur_fh, open); rqstp 4746 fs/nfsd/nfs4state.c nfs4_upgrade_open(struct svc_rqst *rqstp, struct nfs4_file *fp, struct svc_fh *cur_fh, struct nfs4_ol_stateid *stp, struct nfsd4_open *open) rqstp 4752 fs/nfsd/nfs4state.c return nfs4_get_vfs_file(rqstp, fp, cur_fh, stp, open); rqstp 4767 fs/nfsd/nfs4state.c status = nfsd4_truncate(rqstp, cur_fh, open); rqstp 5000 fs/nfsd/nfs4state.c nfsd4_process_open2(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open) rqstp 5002 fs/nfsd/nfs4state.c struct nfsd4_compoundres *resp = rqstp->rq_resp; rqstp 5042 fs/nfsd/nfs4state.c status = nfs4_upgrade_open(rqstp, fp, current_fh, stp, open); rqstp 5048 fs/nfsd/nfs4state.c status = nfs4_get_vfs_file(rqstp, fp, current_fh, stp, open); rqstp 5128 fs/nfsd/nfs4state.c nfsd4_renew(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 5134 fs/nfsd/nfs4state.c struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); rqstp 5581 fs/nfsd/nfs4state.c nfs4_check_file(struct svc_rqst *rqstp, struct svc_fh *fhp, struct nfs4_stid *s, rqstp 5590 fs/nfsd/nfs4state.c status = nfsd_permission(rqstp, fhp->fh_export, fhp->fh_dentry, rqstp 5597 fs/nfsd/nfs4state.c status = nfsd_file_acquire(rqstp, fhp, acc, &nf); rqstp 5610 fs/nfsd/nfs4state.c nfs4_preprocess_stateid_op(struct svc_rqst *rqstp, rqstp 5615 fs/nfsd/nfs4state.c struct net *net = SVC_NET(rqstp); rqstp 5659 fs/nfsd/nfs4state.c status = nfs4_check_file(rqstp, fhp, s, nfp, flags); rqstp 5670 fs/nfsd/nfs4state.c nfsd4_test_stateid(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 5714 fs/nfsd/nfs4state.c nfsd4_free_stateid(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 5842 fs/nfsd/nfs4state.c nfsd4_open_confirm(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 5849 fs/nfsd/nfs4state.c struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); rqstp 5854 fs/nfsd/nfs4state.c status = fh_verify(rqstp, &cstate->current_fh, S_IFREG, 0); rqstp 5911 fs/nfsd/nfs4state.c nfsd4_open_downgrade(struct svc_rqst *rqstp, rqstp 5917 fs/nfsd/nfs4state.c struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); rqstp 5980 fs/nfsd/nfs4state.c nfsd4_close(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 5986 fs/nfsd/nfs4state.c struct net *net = SVC_NET(rqstp); rqstp 6029 fs/nfsd/nfs4state.c nfsd4_delegreturn(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 6037 fs/nfsd/nfs4state.c struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); rqstp 6039 fs/nfsd/nfs4state.c if ((status = fh_verify(rqstp, &cstate->current_fh, S_IFREG, 0))) rqstp 6410 fs/nfsd/nfs4state.c nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 6429 fs/nfsd/nfs4state.c struct net *net = SVC_NET(rqstp); rqstp 6439 fs/nfsd/nfs4state.c if ((status = fh_verify(rqstp, &cstate->current_fh, rqstp 6631 fs/nfsd/nfs4state.c static __be32 nfsd_test_lock(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file_lock *lock) rqstp 6634 fs/nfsd/nfs4state.c __be32 err = nfsd_file_acquire(rqstp, fhp, NFSD_MAY_READ, &nf); rqstp 6646 fs/nfsd/nfs4state.c nfsd4_lockt(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 6653 fs/nfsd/nfs4state.c struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); rqstp 6655 fs/nfsd/nfs4state.c if (locks_in_grace(SVC_NET(rqstp))) rqstp 6667 fs/nfsd/nfs4state.c if ((status = fh_verify(rqstp, &cstate->current_fh, S_IFREG, 0))) rqstp 6703 fs/nfsd/nfs4state.c status = nfsd_test_lock(rqstp, &cstate->current_fh, file_lock); rqstp 6720 fs/nfsd/nfs4state.c nfsd4_locku(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, rqstp 6729 fs/nfsd/nfs4state.c struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); rqstp 6827 fs/nfsd/nfs4state.c nfsd4_release_lockowner(struct svc_rqst *rqstp, rqstp 6839 fs/nfsd/nfs4state.c struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); rqstp 164 fs/nfsd/nfs4xdr.c struct kvec *vec = &argp->rqstp->rq_arg.tail[0]; rqstp 385 fs/nfsd/nfs4xdr.c status = nfsd_map_name_to_gid(argp->rqstp, rqstp 388 fs/nfsd/nfs4xdr.c status = nfsd_map_name_to_uid(argp->rqstp, rqstp 409 fs/nfsd/nfs4xdr.c if ((status = nfsd_map_name_to_uid(argp->rqstp, buf, dummy32, &iattr->ia_uid))) rqstp 420 fs/nfsd/nfs4xdr.c if ((status = nfsd_map_name_to_gid(argp->rqstp, buf, dummy32, &iattr->ia_gid))) rqstp 528 fs/nfsd/nfs4xdr.c struct user_namespace *userns = nfsd_user_namespace(argp->rqstp); rqstp 1911 fs/nfsd/nfs4xdr.c int auth_slack= argp->rqstp->rq_auth_slack; rqstp 1970 fs/nfsd/nfs4xdr.c readbytes += nfsd4_max_reply(argp->rqstp, op); rqstp 1972 fs/nfsd/nfs4xdr.c max_reply += nfsd4_max_reply(argp->rqstp, op); rqstp 1990 fs/nfsd/nfs4xdr.c svc_reserve(argp->rqstp, max_reply + readbytes); rqstp 1991 fs/nfsd/nfs4xdr.c argp->rqstp->rq_cachetype = cachethis ? RC_REPLBUFF : RC_NOCACHE; rqstp 1994 fs/nfsd/nfs4xdr.c clear_bit(RQ_SPLICE_OK, &argp->rqstp->rq_flags); rqstp 2215 fs/nfsd/nfs4xdr.c struct svc_rqst *rqstp, const struct path *path) rqstp 2220 fs/nfsd/nfs4xdr.c exp_ps = rqst_find_fsidzero_export(rqstp); rqstp 2232 fs/nfsd/nfs4xdr.c struct svc_rqst *rqstp, struct svc_export *exp) rqstp 2239 fs/nfsd/nfs4xdr.c status = nfsd4_encode_fsloc_fsroot(xdr, rqstp, &exp->ex_path); rqstp 2269 fs/nfsd/nfs4xdr.c nfsd4_encode_aclname(struct xdr_stream *xdr, struct svc_rqst *rqstp, rqstp 2275 fs/nfsd/nfs4xdr.c return nfsd4_encode_group(xdr, rqstp, ace->who_gid); rqstp 2277 fs/nfsd/nfs4xdr.c return nfsd4_encode_user(xdr, rqstp, ace->who_uid); rqstp 2306 fs/nfsd/nfs4xdr.c nfsd4_encode_security_label(struct xdr_stream *xdr, struct svc_rqst *rqstp, rqstp 2326 fs/nfsd/nfs4xdr.c nfsd4_encode_security_label(struct xdr_stream *xdr, struct svc_rqst *rqstp, rqstp 2405 fs/nfsd/nfs4xdr.c struct svc_rqst *rqstp, int ignore_crossmnt) rqstp 2428 fs/nfsd/nfs4xdr.c struct nfsd4_compoundres *resp = rqstp->rq_resp; rqstp 2434 fs/nfsd/nfs4xdr.c struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); rqstp 2468 fs/nfsd/nfs4xdr.c err = nfsd4_get_nfs4_acl(rqstp, dentry, &acl); rqstp 2649 fs/nfsd/nfs4xdr.c status = nfsd4_encode_aclname(xdr, rqstp, ace); rqstp 2718 fs/nfsd/nfs4xdr.c status = nfsd4_encode_fs_locations(xdr, rqstp, exp); rqstp 2750 fs/nfsd/nfs4xdr.c p = xdr_encode_hyper(p, (u64) svc_max_payload(rqstp)); rqstp 2756 fs/nfsd/nfs4xdr.c p = xdr_encode_hyper(p, (u64) svc_max_payload(rqstp)); rqstp 2777 fs/nfsd/nfs4xdr.c status = nfsd4_encode_user(xdr, rqstp, stat.uid); rqstp 2782 fs/nfsd/nfs4xdr.c status = nfsd4_encode_group(xdr, rqstp, stat.gid); rqstp 2913 fs/nfsd/nfs4xdr.c status = nfsd4_encode_security_label(xdr, rqstp, context, rqstp 2963 fs/nfsd/nfs4xdr.c struct svc_rqst *rqstp, int ignore_crossmnt) rqstp 2970 fs/nfsd/nfs4xdr.c ret = nfsd4_encode_fattr(&xdr, fhp, exp, dentry, bmval, rqstp, rqstp 3242 fs/nfsd/nfs4xdr.c getattr->ga_bmval, resp->rqstp, 0); rqstp 3539 fs/nfsd/nfs4xdr.c resp->rqstp->rq_vec[v].iov_base = p; rqstp 3540 fs/nfsd/nfs4xdr.c resp->rqstp->rq_vec[v].iov_len = thislen; rqstp 3548 fs/nfsd/nfs4xdr.c resp->rqstp->rq_vec[v].iov_base = p; rqstp 3549 fs/nfsd/nfs4xdr.c resp->rqstp->rq_vec[v].iov_len = thislen; rqstp 3556 fs/nfsd/nfs4xdr.c nfserr = nfsd_readv(resp->rqstp, read->rd_fhp, file, read->rd_offset, rqstp 3557 fs/nfsd/nfs4xdr.c resp->rqstp->rq_vec, read->rd_vlen, &maxcount, rqstp 3592 fs/nfsd/nfs4xdr.c WARN_ON_ONCE(test_bit(RQ_SPLICE_OK, &resp->rqstp->rq_flags)); rqstp 3596 fs/nfsd/nfs4xdr.c test_bit(RQ_SPLICE_OK, &resp->rqstp->rq_flags)) { rqstp 3602 fs/nfsd/nfs4xdr.c maxcount = svc_max_payload(resp->rqstp); rqstp 3608 fs/nfsd/nfs4xdr.c test_bit(RQ_SPLICE_OK, &resp->rqstp->rq_flags)) rqstp 3692 fs/nfsd/nfs4xdr.c maxcount = svc_max_payload(resp->rqstp); rqstp 3707 fs/nfsd/nfs4xdr.c readdir->rd_dircount = svc_max_payload(resp->rqstp); rqstp 4415 fs/nfsd/nfs4xdr.c struct xdr_buf *buf = &resp->rqstp->rq_res; rqstp 4434 fs/nfsd/nfs4xdr.c struct svc_rqst *rqstp = resp->rqstp; rqstp 4464 fs/nfsd/nfs4xdr.c if (!nfsd4_last_compound_op(rqstp)) rqstp 4528 fs/nfsd/nfs4xdr.c nfs4svc_encode_voidres(struct svc_rqst *rqstp, __be32 *p) rqstp 4530 fs/nfsd/nfs4xdr.c return xdr_ressize_check(rqstp, p); rqstp 4533 fs/nfsd/nfs4xdr.c void nfsd4_release_compoundargs(struct svc_rqst *rqstp) rqstp 4535 fs/nfsd/nfs4xdr.c struct nfsd4_compoundargs *args = rqstp->rq_argp; rqstp 4551 fs/nfsd/nfs4xdr.c nfs4svc_decode_compoundargs(struct svc_rqst *rqstp, __be32 *p) rqstp 4553 fs/nfsd/nfs4xdr.c struct nfsd4_compoundargs *args = rqstp->rq_argp; rqstp 4555 fs/nfsd/nfs4xdr.c if (rqstp->rq_arg.head[0].iov_len % 4) { rqstp 4558 fs/nfsd/nfs4xdr.c __func__, svc_addr(rqstp), be32_to_cpu(rqstp->rq_xid)); rqstp 4562 fs/nfsd/nfs4xdr.c args->end = rqstp->rq_arg.head[0].iov_base + rqstp->rq_arg.head[0].iov_len; rqstp 4563 fs/nfsd/nfs4xdr.c args->pagelist = rqstp->rq_arg.pages; rqstp 4564 fs/nfsd/nfs4xdr.c args->pagelen = rqstp->rq_arg.page_len; rqstp 4569 fs/nfsd/nfs4xdr.c args->rqstp = rqstp; rqstp 4575 fs/nfsd/nfs4xdr.c nfs4svc_encode_compoundres(struct svc_rqst *rqstp, __be32 *p) rqstp 4580 fs/nfsd/nfs4xdr.c struct nfsd4_compoundres *resp = rqstp->rq_resp; rqstp 4586 fs/nfsd/nfs4xdr.c rqstp->rq_next_page = resp->xdr.page_ptr + 1; rqstp 39 fs/nfsd/nfscache.c static int nfsd_cache_append(struct svc_rqst *rqstp, struct kvec *vec); rqstp 93 fs/nfsd/nfscache.c nfsd_reply_cache_alloc(struct svc_rqst *rqstp, __wsum csum, rqstp 106 fs/nfsd/nfscache.c rp->c_key.k_xid = rqstp->rq_xid; rqstp 107 fs/nfsd/nfscache.c rp->c_key.k_proc = rqstp->rq_proc; rqstp 108 fs/nfsd/nfscache.c rpc_copy_addr((struct sockaddr *)&rp->c_key.k_addr, svc_addr(rqstp)); rqstp 109 fs/nfsd/nfscache.c rpc_set_port((struct sockaddr *)&rp->c_key.k_addr, rpc_get_port(svc_addr(rqstp))); rqstp 110 fs/nfsd/nfscache.c rp->c_key.k_prot = rqstp->rq_prot; rqstp 111 fs/nfsd/nfscache.c rp->c_key.k_vers = rqstp->rq_vers; rqstp 112 fs/nfsd/nfscache.c rp->c_key.k_len = rqstp->rq_arg.len; rqstp 292 fs/nfsd/nfscache.c nfsd_cache_csum(struct svc_rqst *rqstp) rqstp 297 fs/nfsd/nfscache.c struct xdr_buf *buf = &rqstp->rq_arg; rqstp 388 fs/nfsd/nfscache.c nfsd_cache_lookup(struct svc_rqst *rqstp) rqstp 390 fs/nfsd/nfscache.c struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); rqstp 392 fs/nfsd/nfscache.c __be32 xid = rqstp->rq_xid; rqstp 396 fs/nfsd/nfscache.c int type = rqstp->rq_cachetype; rqstp 399 fs/nfsd/nfscache.c rqstp->rq_cacherep = NULL; rqstp 405 fs/nfsd/nfscache.c csum = nfsd_cache_csum(rqstp); rqstp 411 fs/nfsd/nfscache.c rp = nfsd_reply_cache_alloc(rqstp, csum, nn); rqstp 426 fs/nfsd/nfscache.c rqstp->rq_cacherep = rp; rqstp 450 fs/nfsd/nfscache.c if (!test_bit(RQ_SECURE, &rqstp->rq_flags) && rp->c_secure) rqstp 458 fs/nfsd/nfscache.c svc_putu32(&rqstp->rq_res.head[0], rp->c_replstat); rqstp 462 fs/nfsd/nfscache.c if (!nfsd_cache_append(rqstp, &rp->c_replvec)) rqstp 491 fs/nfsd/nfscache.c nfsd_cache_update(struct svc_rqst *rqstp, int cachetype, __be32 *statp) rqstp 493 fs/nfsd/nfscache.c struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); rqstp 494 fs/nfsd/nfscache.c struct svc_cacherep *rp = rqstp->rq_cacherep; rqstp 495 fs/nfsd/nfscache.c struct kvec *resv = &rqstp->rq_res.head[0], *cachv; rqstp 540 fs/nfsd/nfscache.c rp->c_secure = test_bit(RQ_SECURE, &rqstp->rq_flags); rqstp 553 fs/nfsd/nfscache.c nfsd_cache_append(struct svc_rqst *rqstp, struct kvec *data) rqstp 555 fs/nfsd/nfscache.c struct kvec *vec = &rqstp->rq_res.head[0]; rqstp 79 fs/nfsd/nfsd.h int nfsd_dispatch(struct svc_rqst *rqstp, __be32 *statp); rqstp 128 fs/nfsd/nfsd.h nfsd_user_namespace(const struct svc_rqst *rqstp) rqstp 130 fs/nfsd/nfsd.h const struct cred *cred = rqstp->rq_xprt->xpt_cred; rqstp 148 fs/nfsd/nfsd.h bool nfsd4_spo_must_allow(struct svc_rqst *rqstp); rqstp 159 fs/nfsd/nfsd.h static inline bool nfsd4_spo_must_allow(struct svc_rqst *rqstp) rqstp 63 fs/nfsd/nfsfh.c nfsd_mode_check(struct svc_rqst *rqstp, struct dentry *dentry, rqstp 81 fs/nfsd/nfsfh.c if (rqstp->rq_vers == 4 && mode == S_IFLNK) rqstp 90 fs/nfsd/nfsfh.c static bool nfsd_originating_port_ok(struct svc_rqst *rqstp, int flags) rqstp 95 fs/nfsd/nfsfh.c if (rqstp->rq_cred.cr_flavor >= RPC_AUTH_GSS) rqstp 97 fs/nfsd/nfsfh.c return test_bit(RQ_SECURE, &rqstp->rq_flags); rqstp 100 fs/nfsd/nfsfh.c static __be32 nfsd_setuser_and_check_port(struct svc_rqst *rqstp, rqstp 103 fs/nfsd/nfsfh.c int flags = nfsexp_flags(rqstp, exp); rqstp 106 fs/nfsd/nfsfh.c if (!nfsd_originating_port_ok(rqstp, flags)) { rqstp 109 fs/nfsd/nfsfh.c svc_print_addr(rqstp, buf, sizeof(buf))); rqstp 114 fs/nfsd/nfsfh.c return nfserrno(nfsd_setuser(rqstp, exp)); rqstp 117 fs/nfsd/nfsfh.c static inline __be32 check_pseudo_root(struct svc_rqst *rqstp, rqstp 128 fs/nfsd/nfsfh.c if (!nfsd_v4client(rqstp)) rqstp 152 fs/nfsd/nfsfh.c static __be32 nfsd_set_fh_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp) rqstp 163 fs/nfsd/nfsfh.c if (rqstp->rq_vers > 2) rqstp 165 fs/nfsd/nfsfh.c if (rqstp->rq_vers == 4 && fh->fh_size == 0) rqstp 195 fs/nfsd/nfsfh.c exp = rqst_exp_find(rqstp, fh->fh_fsid_type, fh->fh_fsid); rqstp 208 fs/nfsd/nfsfh.c exp = rqst_exp_find(rqstp, FSID_DEV, tfh); rqstp 239 fs/nfsd/nfsfh.c error = nfsd_setuser_and_check_port(rqstp, exp); rqstp 248 fs/nfsd/nfsfh.c if (rqstp->rq_vers > 2) rqstp 321 fs/nfsd/nfsfh.c fh_verify(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type, int access) rqstp 330 fs/nfsd/nfsfh.c error = nfsd_set_fh_dentry(rqstp, fhp); rqstp 352 fs/nfsd/nfsfh.c error = check_pseudo_root(rqstp, dentry, exp); rqstp 356 fs/nfsd/nfsfh.c error = nfsd_setuser_and_check_port(rqstp, exp); rqstp 360 fs/nfsd/nfsfh.c error = nfsd_mode_check(rqstp, dentry, type); rqstp 380 fs/nfsd/nfsfh.c error = check_nfsd_access(exp, rqstp); rqstp 386 fs/nfsd/nfsfh.c error = nfsd_permission(rqstp, exp, dentry, access); rqstp 21 fs/nfsd/nfsproc.c nfsd_proc_null(struct svc_rqst *rqstp) rqstp 43 fs/nfsd/nfsproc.c nfsd_proc_getattr(struct svc_rqst *rqstp) rqstp 45 fs/nfsd/nfsproc.c struct nfsd_fhandle *argp = rqstp->rq_argp; rqstp 46 fs/nfsd/nfsproc.c struct nfsd_attrstat *resp = rqstp->rq_resp; rqstp 51 fs/nfsd/nfsproc.c nfserr = fh_verify(rqstp, &resp->fh, 0, rqstp 61 fs/nfsd/nfsproc.c nfsd_proc_setattr(struct svc_rqst *rqstp) rqstp 63 fs/nfsd/nfsproc.c struct nfsd_sattrargs *argp = rqstp->rq_argp; rqstp 64 fs/nfsd/nfsproc.c struct nfsd_attrstat *resp = rqstp->rq_resp; rqstp 99 fs/nfsd/nfsproc.c nfserr = fh_verify(rqstp, fhp, 0, NFSD_MAY_NOP); rqstp 116 fs/nfsd/nfsproc.c nfserr = nfsd_setattr(rqstp, fhp, iap, 0, (time_t)0); rqstp 128 fs/nfsd/nfsproc.c nfsd_proc_lookup(struct svc_rqst *rqstp) rqstp 130 fs/nfsd/nfsproc.c struct nfsd_diropargs *argp = rqstp->rq_argp; rqstp 131 fs/nfsd/nfsproc.c struct nfsd_diropres *resp = rqstp->rq_resp; rqstp 138 fs/nfsd/nfsproc.c nfserr = nfsd_lookup(rqstp, &argp->fh, argp->name, argp->len, rqstp 149 fs/nfsd/nfsproc.c nfsd_proc_readlink(struct svc_rqst *rqstp) rqstp 151 fs/nfsd/nfsproc.c struct nfsd_readlinkargs *argp = rqstp->rq_argp; rqstp 152 fs/nfsd/nfsproc.c struct nfsd_readlinkres *resp = rqstp->rq_resp; rqstp 159 fs/nfsd/nfsproc.c nfserr = nfsd_readlink(rqstp, &argp->fh, argp->buffer, &resp->len); rqstp 170 fs/nfsd/nfsproc.c nfsd_proc_read(struct svc_rqst *rqstp) rqstp 172 fs/nfsd/nfsproc.c struct nfsd_readargs *argp = rqstp->rq_argp; rqstp 173 fs/nfsd/nfsproc.c struct nfsd_readres *resp = rqstp->rq_resp; rqstp 189 fs/nfsd/nfsproc.c svc_print_addr(rqstp, buf, sizeof(buf)), rqstp 193 fs/nfsd/nfsproc.c svc_reserve_auth(rqstp, (19<<2) + argp->count + 4); rqstp 196 fs/nfsd/nfsproc.c nfserr = nfsd_read(rqstp, fh_copy(&resp->fh, &argp->fh), rqstp 198 fs/nfsd/nfsproc.c rqstp->rq_vec, argp->vlen, rqstp 211 fs/nfsd/nfsproc.c nfsd_proc_write(struct svc_rqst *rqstp) rqstp 213 fs/nfsd/nfsproc.c struct nfsd_writeargs *argp = rqstp->rq_argp; rqstp 214 fs/nfsd/nfsproc.c struct nfsd_attrstat *resp = rqstp->rq_resp; rqstp 223 fs/nfsd/nfsproc.c nvecs = svc_fill_write_vector(rqstp, rqstp->rq_arg.pages, rqstp 227 fs/nfsd/nfsproc.c nfserr = nfsd_write(rqstp, fh_copy(&resp->fh, &argp->fh), rqstp 228 fs/nfsd/nfsproc.c argp->offset, rqstp->rq_vec, nvecs, rqstp 240 fs/nfsd/nfsproc.c nfsd_proc_create(struct svc_rqst *rqstp) rqstp 242 fs/nfsd/nfsproc.c struct nfsd_createargs *argp = rqstp->rq_argp; rqstp 243 fs/nfsd/nfsproc.c struct nfsd_diropres *resp = rqstp->rq_resp; rqstp 258 fs/nfsd/nfsproc.c nfserr = fh_verify(rqstp, dirfhp, S_IFDIR, NFSD_MAY_EXEC); rqstp 324 fs/nfsd/nfsproc.c nfserr = nfsd_permission(rqstp, rqstp 372 fs/nfsd/nfsproc.c nfserr = nfsd_create_locked(rqstp, dirfhp, argp->name, rqstp 383 fs/nfsd/nfsproc.c nfserr = nfsd_setattr(rqstp, newfhp, attr, 0, (time_t)0); rqstp 396 fs/nfsd/nfsproc.c nfsd_proc_remove(struct svc_rqst *rqstp) rqstp 398 fs/nfsd/nfsproc.c struct nfsd_diropargs *argp = rqstp->rq_argp; rqstp 405 fs/nfsd/nfsproc.c nfserr = nfsd_unlink(rqstp, &argp->fh, -S_IFDIR, argp->name, argp->len); rqstp 411 fs/nfsd/nfsproc.c nfsd_proc_rename(struct svc_rqst *rqstp) rqstp 413 fs/nfsd/nfsproc.c struct nfsd_renameargs *argp = rqstp->rq_argp; rqstp 421 fs/nfsd/nfsproc.c nfserr = nfsd_rename(rqstp, &argp->ffh, argp->fname, argp->flen, rqstp 429 fs/nfsd/nfsproc.c nfsd_proc_link(struct svc_rqst *rqstp) rqstp 431 fs/nfsd/nfsproc.c struct nfsd_linkargs *argp = rqstp->rq_argp; rqstp 441 fs/nfsd/nfsproc.c nfserr = nfsd_link(rqstp, &argp->tfh, argp->tname, argp->tlen, rqstp 449 fs/nfsd/nfsproc.c nfsd_proc_symlink(struct svc_rqst *rqstp) rqstp 451 fs/nfsd/nfsproc.c struct nfsd_symlinkargs *argp = rqstp->rq_argp; rqstp 458 fs/nfsd/nfsproc.c argp->tname = svc_fill_symlink_pathname(rqstp, &argp->first, rqstp 459 fs/nfsd/nfsproc.c page_address(rqstp->rq_arg.pages[0]), rqstp 469 fs/nfsd/nfsproc.c nfserr = nfsd_symlink(rqstp, &argp->ffh, argp->fname, argp->flen, rqstp 483 fs/nfsd/nfsproc.c nfsd_proc_mkdir(struct svc_rqst *rqstp) rqstp 485 fs/nfsd/nfsproc.c struct nfsd_createargs *argp = rqstp->rq_argp; rqstp 486 fs/nfsd/nfsproc.c struct nfsd_diropres *resp = rqstp->rq_resp; rqstp 498 fs/nfsd/nfsproc.c nfserr = nfsd_create(rqstp, &argp->fh, argp->name, argp->len, rqstp 508 fs/nfsd/nfsproc.c nfsd_proc_rmdir(struct svc_rqst *rqstp) rqstp 510 fs/nfsd/nfsproc.c struct nfsd_diropargs *argp = rqstp->rq_argp; rqstp 515 fs/nfsd/nfsproc.c nfserr = nfsd_unlink(rqstp, &argp->fh, S_IFDIR, argp->name, argp->len); rqstp 524 fs/nfsd/nfsproc.c nfsd_proc_readdir(struct svc_rqst *rqstp) rqstp 526 fs/nfsd/nfsproc.c struct nfsd_readdirargs *argp = rqstp->rq_argp; rqstp 527 fs/nfsd/nfsproc.c struct nfsd_readdirres *resp = rqstp->rq_resp; rqstp 550 fs/nfsd/nfsproc.c nfserr = nfsd_readdir(rqstp, &argp->fh, &offset, rqstp 565 fs/nfsd/nfsproc.c nfsd_proc_statfs(struct svc_rqst *rqstp) rqstp 567 fs/nfsd/nfsproc.c struct nfsd_fhandle *argp = rqstp->rq_argp; rqstp 568 fs/nfsd/nfsproc.c struct nfsd_statfsres *resp = rqstp->rq_resp; rqstp 573 fs/nfsd/nfsproc.c nfserr = nfsd_statfs(rqstp, &argp->fh, &resp->stats, rqstp 791 fs/nfsd/nfssvc.c nfsd_acl_init_request(struct svc_rqst *rqstp, rqstp 795 fs/nfsd/nfssvc.c struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); rqstp 798 fs/nfsd/nfssvc.c if (likely(nfsd_support_acl_version(rqstp->rq_vers) && rqstp 799 fs/nfsd/nfssvc.c nfsd_vers(nn, rqstp->rq_vers, NFSD_TEST))) rqstp 800 fs/nfsd/nfssvc.c return svc_generic_init_request(rqstp, progp, ret); rqstp 804 fs/nfsd/nfssvc.c if (nfsd_support_acl_version(rqstp->rq_vers) && rqstp 814 fs/nfsd/nfssvc.c if (nfsd_support_acl_version(rqstp->rq_vers) && rqstp 836 fs/nfsd/nfssvc.c nfsd_init_request(struct svc_rqst *rqstp, rqstp 840 fs/nfsd/nfssvc.c struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); rqstp 843 fs/nfsd/nfssvc.c if (likely(nfsd_vers(nn, rqstp->rq_vers, NFSD_TEST))) rqstp 844 fs/nfsd/nfssvc.c return svc_generic_init_request(rqstp, progp, ret); rqstp 871 fs/nfsd/nfssvc.c struct svc_rqst *rqstp = (struct svc_rqst *) vrqstp; rqstp 872 fs/nfsd/nfssvc.c struct svc_xprt *perm_sock = list_entry(rqstp->rq_server->sv_permsocks.next, typeof(struct svc_xprt), xpt_list); rqstp 909 fs/nfsd/nfssvc.c rqstp->rq_server->sv_maxconn = nn->max_connections; rqstp 915 fs/nfsd/nfssvc.c while ((err = svc_recv(rqstp, 60*60*HZ)) == -EAGAIN) rqstp 920 fs/nfsd/nfssvc.c svc_process(rqstp); rqstp 931 fs/nfsd/nfssvc.c rqstp->rq_server = NULL; rqstp 934 fs/nfsd/nfssvc.c svc_exit_thread(rqstp); rqstp 961 fs/nfsd/nfssvc.c static bool nfs_request_too_big(struct svc_rqst *rqstp, rqstp 968 fs/nfsd/nfssvc.c if (rqstp->rq_prog != NFS_PROGRAM) rqstp 974 fs/nfsd/nfssvc.c if (rqstp->rq_vers >= 4) rqstp 981 fs/nfsd/nfssvc.c return rqstp->rq_arg.len > PAGE_SIZE; rqstp 985 fs/nfsd/nfssvc.c nfsd_dispatch(struct svc_rqst *rqstp, __be32 *statp) rqstp 992 fs/nfsd/nfssvc.c rqstp->rq_vers, rqstp->rq_proc); rqstp 993 fs/nfsd/nfssvc.c proc = rqstp->rq_procinfo; rqstp 995 fs/nfsd/nfssvc.c if (nfs_request_too_big(rqstp, proc)) { rqstp 996 fs/nfsd/nfssvc.c dprintk("nfsd: NFSv%d argument too large\n", rqstp->rq_vers); rqstp 1004 fs/nfsd/nfssvc.c rqstp->rq_cachetype = proc->pc_cachetype; rqstp 1007 fs/nfsd/nfssvc.c !proc->pc_decode(rqstp, (__be32*)rqstp->rq_arg.head[0].iov_base)) { rqstp 1014 fs/nfsd/nfssvc.c switch (nfsd_cache_lookup(rqstp)) { rqstp 1026 fs/nfsd/nfssvc.c nfserrp = rqstp->rq_res.head[0].iov_base rqstp 1027 fs/nfsd/nfssvc.c + rqstp->rq_res.head[0].iov_len; rqstp 1028 fs/nfsd/nfssvc.c rqstp->rq_res.head[0].iov_len += sizeof(__be32); rqstp 1031 fs/nfsd/nfssvc.c nfserr = proc->pc_func(rqstp); rqstp 1032 fs/nfsd/nfssvc.c nfserr = map_new_errors(rqstp->rq_vers, nfserr); rqstp 1033 fs/nfsd/nfssvc.c if (nfserr == nfserr_dropit || test_bit(RQ_DROPME, &rqstp->rq_flags)) { rqstp 1035 fs/nfsd/nfssvc.c nfsd_cache_update(rqstp, RC_NOCACHE, NULL); rqstp 1039 fs/nfsd/nfssvc.c if (rqstp->rq_proc != 0) rqstp 1045 fs/nfsd/nfssvc.c if (!(nfserr && rqstp->rq_vers == 2)) { rqstp 1046 fs/nfsd/nfssvc.c if (proc->pc_encode && !proc->pc_encode(rqstp, nfserrp)) { rqstp 1049 fs/nfsd/nfssvc.c nfsd_cache_update(rqstp, RC_NOCACHE, NULL); rqstp 1056 fs/nfsd/nfssvc.c nfsd_cache_update(rqstp, rqstp->rq_cachetype, statp + 1); rqstp 129 fs/nfsd/nfsxdr.c encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, rqstp 132 fs/nfsd/nfsxdr.c struct user_namespace *userns = nfsd_user_namespace(rqstp); rqstp 187 fs/nfsd/nfsxdr.c __be32 *nfs2svc_encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, struct kstat *stat) rqstp 189 fs/nfsd/nfsxdr.c return encode_fattr(rqstp, p, fhp, stat); rqstp 196 fs/nfsd/nfsxdr.c nfssvc_decode_void(struct svc_rqst *rqstp, __be32 *p) rqstp 198 fs/nfsd/nfsxdr.c return xdr_argsize_check(rqstp, p); rqstp 202 fs/nfsd/nfsxdr.c nfssvc_decode_fhandle(struct svc_rqst *rqstp, __be32 *p) rqstp 204 fs/nfsd/nfsxdr.c struct nfsd_fhandle *args = rqstp->rq_argp; rqstp 209 fs/nfsd/nfsxdr.c return xdr_argsize_check(rqstp, p); rqstp 213 fs/nfsd/nfsxdr.c nfssvc_decode_sattrargs(struct svc_rqst *rqstp, __be32 *p) rqstp 215 fs/nfsd/nfsxdr.c struct nfsd_sattrargs *args = rqstp->rq_argp; rqstp 220 fs/nfsd/nfsxdr.c p = decode_sattr(p, &args->attrs, nfsd_user_namespace(rqstp)); rqstp 222 fs/nfsd/nfsxdr.c return xdr_argsize_check(rqstp, p); rqstp 226 fs/nfsd/nfsxdr.c nfssvc_decode_diropargs(struct svc_rqst *rqstp, __be32 *p) rqstp 228 fs/nfsd/nfsxdr.c struct nfsd_diropargs *args = rqstp->rq_argp; rqstp 234 fs/nfsd/nfsxdr.c return xdr_argsize_check(rqstp, p); rqstp 238 fs/nfsd/nfsxdr.c nfssvc_decode_readargs(struct svc_rqst *rqstp, __be32 *p) rqstp 240 fs/nfsd/nfsxdr.c struct nfsd_readargs *args = rqstp->rq_argp; rqstp 258 fs/nfsd/nfsxdr.c struct page *p = *(rqstp->rq_next_page++); rqstp 260 fs/nfsd/nfsxdr.c rqstp->rq_vec[v].iov_base = page_address(p); rqstp 261 fs/nfsd/nfsxdr.c rqstp->rq_vec[v].iov_len = min_t(unsigned int, len, PAGE_SIZE); rqstp 262 fs/nfsd/nfsxdr.c len -= rqstp->rq_vec[v].iov_len; rqstp 266 fs/nfsd/nfsxdr.c return xdr_argsize_check(rqstp, p); rqstp 270 fs/nfsd/nfsxdr.c nfssvc_decode_writeargs(struct svc_rqst *rqstp, __be32 *p) rqstp 272 fs/nfsd/nfsxdr.c struct nfsd_writeargs *args = rqstp->rq_argp; rqstp 274 fs/nfsd/nfsxdr.c struct kvec *head = rqstp->rq_arg.head; rqstp 297 fs/nfsd/nfsxdr.c dlen = head->iov_len + rqstp->rq_arg.page_len - hdr; rqstp 316 fs/nfsd/nfsxdr.c nfssvc_decode_createargs(struct svc_rqst *rqstp, __be32 *p) rqstp 318 fs/nfsd/nfsxdr.c struct nfsd_createargs *args = rqstp->rq_argp; rqstp 323 fs/nfsd/nfsxdr.c p = decode_sattr(p, &args->attrs, nfsd_user_namespace(rqstp)); rqstp 325 fs/nfsd/nfsxdr.c return xdr_argsize_check(rqstp, p); rqstp 329 fs/nfsd/nfsxdr.c nfssvc_decode_renameargs(struct svc_rqst *rqstp, __be32 *p) rqstp 331 fs/nfsd/nfsxdr.c struct nfsd_renameargs *args = rqstp->rq_argp; rqstp 339 fs/nfsd/nfsxdr.c return xdr_argsize_check(rqstp, p); rqstp 343 fs/nfsd/nfsxdr.c nfssvc_decode_readlinkargs(struct svc_rqst *rqstp, __be32 *p) rqstp 345 fs/nfsd/nfsxdr.c struct nfsd_readlinkargs *args = rqstp->rq_argp; rqstp 350 fs/nfsd/nfsxdr.c args->buffer = page_address(*(rqstp->rq_next_page++)); rqstp 352 fs/nfsd/nfsxdr.c return xdr_argsize_check(rqstp, p); rqstp 356 fs/nfsd/nfsxdr.c nfssvc_decode_linkargs(struct svc_rqst *rqstp, __be32 *p) rqstp 358 fs/nfsd/nfsxdr.c struct nfsd_linkargs *args = rqstp->rq_argp; rqstp 365 fs/nfsd/nfsxdr.c return xdr_argsize_check(rqstp, p); rqstp 369 fs/nfsd/nfsxdr.c nfssvc_decode_symlinkargs(struct svc_rqst *rqstp, __be32 *p) rqstp 371 fs/nfsd/nfsxdr.c struct nfsd_symlinkargs *args = rqstp->rq_argp; rqstp 384 fs/nfsd/nfsxdr.c args->first.iov_len = rqstp->rq_arg.head[0].iov_len; rqstp 392 fs/nfsd/nfsxdr.c if (rqstp->rq_arg.page_len) { rqstp 393 fs/nfsd/nfsxdr.c if (args->tlen != rqstp->rq_arg.page_len) rqstp 395 fs/nfsd/nfsxdr.c p = rqstp->rq_arg.tail[0].iov_base; rqstp 402 fs/nfsd/nfsxdr.c decode_sattr(p, &args->attrs, nfsd_user_namespace(rqstp)); rqstp 408 fs/nfsd/nfsxdr.c nfssvc_decode_readdirargs(struct svc_rqst *rqstp, __be32 *p) rqstp 410 fs/nfsd/nfsxdr.c struct nfsd_readdirargs *args = rqstp->rq_argp; rqstp 418 fs/nfsd/nfsxdr.c args->buffer = page_address(*(rqstp->rq_next_page++)); rqstp 420 fs/nfsd/nfsxdr.c return xdr_argsize_check(rqstp, p); rqstp 427 fs/nfsd/nfsxdr.c nfssvc_encode_void(struct svc_rqst *rqstp, __be32 *p) rqstp 429 fs/nfsd/nfsxdr.c return xdr_ressize_check(rqstp, p); rqstp 433 fs/nfsd/nfsxdr.c nfssvc_encode_attrstat(struct svc_rqst *rqstp, __be32 *p) rqstp 435 fs/nfsd/nfsxdr.c struct nfsd_attrstat *resp = rqstp->rq_resp; rqstp 437 fs/nfsd/nfsxdr.c p = encode_fattr(rqstp, p, &resp->fh, &resp->stat); rqstp 438 fs/nfsd/nfsxdr.c return xdr_ressize_check(rqstp, p); rqstp 442 fs/nfsd/nfsxdr.c nfssvc_encode_diropres(struct svc_rqst *rqstp, __be32 *p) rqstp 444 fs/nfsd/nfsxdr.c struct nfsd_diropres *resp = rqstp->rq_resp; rqstp 447 fs/nfsd/nfsxdr.c p = encode_fattr(rqstp, p, &resp->fh, &resp->stat); rqstp 448 fs/nfsd/nfsxdr.c return xdr_ressize_check(rqstp, p); rqstp 452 fs/nfsd/nfsxdr.c nfssvc_encode_readlinkres(struct svc_rqst *rqstp, __be32 *p) rqstp 454 fs/nfsd/nfsxdr.c struct nfsd_readlinkres *resp = rqstp->rq_resp; rqstp 457 fs/nfsd/nfsxdr.c xdr_ressize_check(rqstp, p); rqstp 458 fs/nfsd/nfsxdr.c rqstp->rq_res.page_len = resp->len; rqstp 461 fs/nfsd/nfsxdr.c rqstp->rq_res.tail[0].iov_base = p; rqstp 463 fs/nfsd/nfsxdr.c rqstp->rq_res.tail[0].iov_len = 4 - (resp->len&3); rqstp 469 fs/nfsd/nfsxdr.c nfssvc_encode_readres(struct svc_rqst *rqstp, __be32 *p) rqstp 471 fs/nfsd/nfsxdr.c struct nfsd_readres *resp = rqstp->rq_resp; rqstp 473 fs/nfsd/nfsxdr.c p = encode_fattr(rqstp, p, &resp->fh, &resp->stat); rqstp 475 fs/nfsd/nfsxdr.c xdr_ressize_check(rqstp, p); rqstp 478 fs/nfsd/nfsxdr.c rqstp->rq_res.page_len = resp->count; rqstp 481 fs/nfsd/nfsxdr.c rqstp->rq_res.tail[0].iov_base = p; rqstp 483 fs/nfsd/nfsxdr.c rqstp->rq_res.tail[0].iov_len = 4 - (resp->count&3); rqstp 489 fs/nfsd/nfsxdr.c nfssvc_encode_readdirres(struct svc_rqst *rqstp, __be32 *p) rqstp 491 fs/nfsd/nfsxdr.c struct nfsd_readdirres *resp = rqstp->rq_resp; rqstp 493 fs/nfsd/nfsxdr.c xdr_ressize_check(rqstp, p); rqstp 497 fs/nfsd/nfsxdr.c rqstp->rq_res.page_len = (((unsigned long)p-1) & ~PAGE_MASK)+1; rqstp 503 fs/nfsd/nfsxdr.c nfssvc_encode_statfsres(struct svc_rqst *rqstp, __be32 *p) rqstp 505 fs/nfsd/nfsxdr.c struct nfsd_statfsres *resp = rqstp->rq_resp; rqstp 513 fs/nfsd/nfsxdr.c return xdr_ressize_check(rqstp, p); rqstp 565 fs/nfsd/nfsxdr.c nfssvc_release_fhandle(struct svc_rqst *rqstp) rqstp 567 fs/nfsd/nfsxdr.c struct nfsd_fhandle *resp = rqstp->rq_resp; rqstp 26 fs/nfsd/pnfs.h struct svc_rqst *rqstp, rqstp 54 fs/nfsd/pnfs.h __be32 nfsd4_preprocess_layout_stateid(struct svc_rqst *rqstp, rqstp 59 fs/nfsd/pnfs.h __be32 nfsd4_return_file_layouts(struct svc_rqst *rqstp, rqstp 62 fs/nfsd/pnfs.h __be32 nfsd4_return_client_layouts(struct svc_rqst *rqstp, rqstp 618 fs/nfsd/state.h extern __be32 nfs4_preprocess_stateid_op(struct svc_rqst *rqstp, rqstp 54 fs/nfsd/trace.h TP_PROTO(struct svc_rqst *rqstp, rqstp 58 fs/nfsd/trace.h TP_ARGS(rqstp, fhp, offset, len), rqstp 66 fs/nfsd/trace.h __entry->xid = be32_to_cpu(rqstp->rq_xid); rqstp 78 fs/nfsd/trace.h TP_PROTO(struct svc_rqst *rqstp, \ rqstp 82 fs/nfsd/trace.h TP_ARGS(rqstp, fhp, offset, len)) rqstp 95 fs/nfsd/trace.h TP_PROTO(struct svc_rqst *rqstp, rqstp 99 fs/nfsd/trace.h TP_ARGS(rqstp, fhp, offset, status), rqstp 107 fs/nfsd/trace.h __entry->xid = be32_to_cpu(rqstp->rq_xid); rqstp 119 fs/nfsd/trace.h TP_PROTO(struct svc_rqst *rqstp, \ rqstp 123 fs/nfsd/trace.h TP_ARGS(rqstp, fhp, offset, len)) rqstp 224 fs/nfsd/trace.h TP_PROTO(struct svc_rqst *rqstp, unsigned int hash, rqstp 228 fs/nfsd/trace.h TP_ARGS(rqstp, hash, inode, may_flags, nf, status), rqstp 243 fs/nfsd/trace.h __entry->xid = rqstp->rq_xid; rqstp 59 fs/nfsd/vfs.c nfsd_cross_mnt(struct svc_rqst *rqstp, struct dentry **dpp, rqstp 78 fs/nfsd/vfs.c exp2 = rqst_exp_get_by_name(rqstp, &path); rqstp 93 fs/nfsd/vfs.c if (nfsd_v4client(rqstp) || rqstp 124 fs/nfsd/vfs.c static int nfsd_lookup_parent(struct svc_rqst *rqstp, struct dentry *dparent, struct svc_export **exp, struct dentry **dentryp) rqstp 132 fs/nfsd/vfs.c exp2 = rqst_exp_parent(rqstp, &path); rqstp 173 fs/nfsd/vfs.c nfsd_lookup_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp, rqstp 193 fs/nfsd/vfs.c else if (!EX_NOHIDE(exp) && !nfsd_v4client(rqstp)) rqstp 197 fs/nfsd/vfs.c host_err = nfsd_lookup_parent(rqstp, dparent, &exp, &dentry); rqstp 222 fs/nfsd/vfs.c if ((host_err = nfsd_cross_mnt(rqstp, &dentry, &exp))) { rqstp 250 fs/nfsd/vfs.c nfsd_lookup(struct svc_rqst *rqstp, struct svc_fh *fhp, const char *name, rqstp 257 fs/nfsd/vfs.c err = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_EXEC); rqstp 260 fs/nfsd/vfs.c err = nfsd_lookup_dentry(rqstp, fhp, name, len, &exp, &dentry); rqstp 263 fs/nfsd/vfs.c err = check_nfsd_access(exp, rqstp); rqstp 332 fs/nfsd/vfs.c nfsd_get_write_access(struct svc_rqst *rqstp, struct svc_fh *fhp, rqstp 341 fs/nfsd/vfs.c err = nfsd_permission(rqstp, fhp->fh_export, fhp->fh_dentry, rqstp 366 fs/nfsd/vfs.c nfsd_setattr(struct svc_rqst *rqstp, struct svc_fh *fhp, struct iattr *iap, rqstp 400 fs/nfsd/vfs.c err = fh_verify(rqstp, fhp, ftype, accmode); rqstp 432 fs/nfsd/vfs.c err = nfsd_get_write_access(rqstp, fhp, iap); rqstp 507 fs/nfsd/vfs.c __be32 nfsd4_set_nfs4_label(struct svc_rqst *rqstp, struct svc_fh *fhp, rqstp 514 fs/nfsd/vfs.c error = fh_verify(rqstp, fhp, 0 /* S_IFREG */, NFSD_MAY_SATTR); rqstp 526 fs/nfsd/vfs.c __be32 nfsd4_set_nfs4_label(struct svc_rqst *rqstp, struct svc_fh *fhp, rqstp 571 fs/nfsd/vfs.c __be32 nfsd4_vfs_fallocate(struct svc_rqst *rqstp, struct svc_fh *fhp, rqstp 632 fs/nfsd/vfs.c nfsd_access(struct svc_rqst *rqstp, struct svc_fh *fhp, u32 *access, u32 *supported) rqstp 640 fs/nfsd/vfs.c error = fh_verify(rqstp, fhp, 0, NFSD_MAY_NOP); rqstp 662 fs/nfsd/vfs.c err2 = nfsd_permission(rqstp, export, dentry, map->how); rqstp 707 fs/nfsd/vfs.c __nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type, rqstp 774 fs/nfsd/vfs.c nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type, rqstp 793 fs/nfsd/vfs.c err = fh_verify(rqstp, fhp, type, may_flags); rqstp 795 fs/nfsd/vfs.c err = __nfsd_open(rqstp, fhp, type, may_flags, filp); rqstp 801 fs/nfsd/vfs.c nfsd_open_verified(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type, rqstp 807 fs/nfsd/vfs.c err = __nfsd_open(rqstp, fhp, type, may_flags, filp); rqstp 821 fs/nfsd/vfs.c struct svc_rqst *rqstp = sd->u.data; rqstp 822 fs/nfsd/vfs.c struct page **pp = rqstp->rq_next_page; rqstp 828 fs/nfsd/vfs.c if (rqstp->rq_res.page_len == 0) { rqstp 830 fs/nfsd/vfs.c put_page(*rqstp->rq_next_page); rqstp 831 fs/nfsd/vfs.c *(rqstp->rq_next_page++) = page; rqstp 832 fs/nfsd/vfs.c rqstp->rq_res.page_base = buf->offset; rqstp 833 fs/nfsd/vfs.c rqstp->rq_res.page_len = size; rqstp 836 fs/nfsd/vfs.c if (*rqstp->rq_next_page) rqstp 837 fs/nfsd/vfs.c put_page(*rqstp->rq_next_page); rqstp 838 fs/nfsd/vfs.c *(rqstp->rq_next_page++) = page; rqstp 839 fs/nfsd/vfs.c rqstp->rq_res.page_len += size; rqstp 841 fs/nfsd/vfs.c rqstp->rq_res.page_len += size; rqstp 862 fs/nfsd/vfs.c static __be32 nfsd_finish_read(struct svc_rqst *rqstp, struct svc_fh *fhp, rqstp 871 fs/nfsd/vfs.c trace_nfsd_read_io_done(rqstp, fhp, offset, *count); rqstp 874 fs/nfsd/vfs.c trace_nfsd_read_err(rqstp, fhp, offset, host_err); rqstp 879 fs/nfsd/vfs.c __be32 nfsd_splice_read(struct svc_rqst *rqstp, struct svc_fh *fhp, rqstp 887 fs/nfsd/vfs.c .u.data = rqstp, rqstp 891 fs/nfsd/vfs.c trace_nfsd_read_splice(rqstp, fhp, offset, *count); rqstp 892 fs/nfsd/vfs.c rqstp->rq_next_page = rqstp->rq_respages + 1; rqstp 894 fs/nfsd/vfs.c return nfsd_finish_read(rqstp, fhp, file, offset, count, eof, host_err); rqstp 897 fs/nfsd/vfs.c __be32 nfsd_readv(struct svc_rqst *rqstp, struct svc_fh *fhp, rqstp 906 fs/nfsd/vfs.c trace_nfsd_read_vector(rqstp, fhp, offset, *count); rqstp 909 fs/nfsd/vfs.c return nfsd_finish_read(rqstp, fhp, file, offset, count, eof, host_err); rqstp 950 fs/nfsd/vfs.c nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, rqstp 963 fs/nfsd/vfs.c trace_nfsd_write_opened(rqstp, fhp, offset, *cnt); rqstp 965 fs/nfsd/vfs.c if (test_bit(RQ_LOCAL, &rqstp->rq_flags)) rqstp 975 fs/nfsd/vfs.c use_wgather = (rqstp->rq_vers == 2) && EX_WGATHER(exp); rqstp 994 fs/nfsd/vfs.c nfsd_reset_boot_verifier(net_generic(SVC_NET(rqstp), rqstp 1000 fs/nfsd/vfs.c trace_nfsd_write_io_done(rqstp, fhp, offset, *cnt); rqstp 1003 fs/nfsd/vfs.c trace_nfsd_write_err(rqstp, fhp, offset, host_err); rqstp 1006 fs/nfsd/vfs.c if (test_bit(RQ_LOCAL, &rqstp->rq_flags)) rqstp 1016 fs/nfsd/vfs.c __be32 nfsd_read(struct svc_rqst *rqstp, struct svc_fh *fhp, rqstp 1024 fs/nfsd/vfs.c trace_nfsd_read_start(rqstp, fhp, offset, *count); rqstp 1025 fs/nfsd/vfs.c err = nfsd_file_acquire(rqstp, fhp, NFSD_MAY_READ, &nf); rqstp 1030 fs/nfsd/vfs.c if (file->f_op->splice_read && test_bit(RQ_SPLICE_OK, &rqstp->rq_flags)) rqstp 1031 fs/nfsd/vfs.c err = nfsd_splice_read(rqstp, fhp, file, offset, count, eof); rqstp 1033 fs/nfsd/vfs.c err = nfsd_readv(rqstp, fhp, file, offset, vec, vlen, count, eof); rqstp 1037 fs/nfsd/vfs.c trace_nfsd_read_done(rqstp, fhp, offset, *count); rqstp 1048 fs/nfsd/vfs.c nfsd_write(struct svc_rqst *rqstp, struct svc_fh *fhp, loff_t offset, rqstp 1054 fs/nfsd/vfs.c trace_nfsd_write_start(rqstp, fhp, offset, *cnt); rqstp 1056 fs/nfsd/vfs.c err = nfsd_file_acquire(rqstp, fhp, NFSD_MAY_WRITE, &nf); rqstp 1060 fs/nfsd/vfs.c err = nfsd_vfs_write(rqstp, fhp, nf->nf_file, offset, vec, rqstp 1064 fs/nfsd/vfs.c trace_nfsd_write_done(rqstp, fhp, offset, *cnt); rqstp 1079 fs/nfsd/vfs.c nfsd_commit(struct svc_rqst *rqstp, struct svc_fh *fhp, rqstp 1094 fs/nfsd/vfs.c err = nfsd_file_acquire(rqstp, fhp, rqstp 1121 fs/nfsd/vfs.c nfsd_create_setattr(struct svc_rqst *rqstp, struct svc_fh *resfhp, rqstp 1136 fs/nfsd/vfs.c return nfsd_setattr(rqstp, resfhp, iap, 0, (time_t)0); rqstp 1158 fs/nfsd/vfs.c nfsd_create_locked(struct svc_rqst *rqstp, struct svc_fh *fhp, rqstp 1179 fs/nfsd/vfs.c err = nfsd_permission(rqstp, fhp->fh_export, dentry, NFSD_MAY_CREATE); rqstp 1234 fs/nfsd/vfs.c err = nfsd_create_setattr(rqstp, resfhp, iap); rqstp 1266 fs/nfsd/vfs.c nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp, rqstp 1277 fs/nfsd/vfs.c err = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_NOP); rqstp 1300 fs/nfsd/vfs.c return nfsd_create_locked(rqstp, fhp, fname, flen, iap, type, rqstp 1310 fs/nfsd/vfs.c do_nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp, rqstp 1329 fs/nfsd/vfs.c err = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_EXEC); rqstp 1352 fs/nfsd/vfs.c err = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_CREATE); rqstp 1441 fs/nfsd/vfs.c err = nfsd_create_setattr(rqstp, resfhp, iap); rqstp 1475 fs/nfsd/vfs.c nfsd_readlink(struct svc_rqst *rqstp, struct svc_fh *fhp, char *buf, int *lenp) rqstp 1483 fs/nfsd/vfs.c err = fh_verify(rqstp, fhp, S_IFLNK, NFSD_MAY_NOP); rqstp 1512 fs/nfsd/vfs.c nfsd_symlink(struct svc_rqst *rqstp, struct svc_fh *fhp, rqstp 1528 fs/nfsd/vfs.c err = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_CREATE); rqstp 1567 fs/nfsd/vfs.c nfsd_link(struct svc_rqst *rqstp, struct svc_fh *ffhp, rqstp 1575 fs/nfsd/vfs.c err = fh_verify(rqstp, ffhp, S_IFDIR, NFSD_MAY_CREATE); rqstp 1578 fs/nfsd/vfs.c err = fh_verify(rqstp, tfhp, 0, NFSD_MAY_NOP); rqstp 1617 fs/nfsd/vfs.c if (host_err == -EXDEV && rqstp->rq_vers == 2) rqstp 1660 fs/nfsd/vfs.c nfsd_rename(struct svc_rqst *rqstp, struct svc_fh *ffhp, char *fname, int flen, rqstp 1669 fs/nfsd/vfs.c err = fh_verify(rqstp, ffhp, S_IFDIR, NFSD_MAY_REMOVE); rqstp 1672 fs/nfsd/vfs.c err = fh_verify(rqstp, tfhp, S_IFDIR, NFSD_MAY_CREATE); rqstp 1777 fs/nfsd/vfs.c nfsd_unlink(struct svc_rqst *rqstp, struct svc_fh *fhp, int type, rqstp 1788 fs/nfsd/vfs.c err = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_REMOVE); rqstp 1952 fs/nfsd/vfs.c nfsd_readdir(struct svc_rqst *rqstp, struct svc_fh *fhp, loff_t *offsetp, rqstp 1961 fs/nfsd/vfs.c if (rqstp->rq_vers > 2) rqstp 1964 fs/nfsd/vfs.c err = nfsd_open(rqstp, fhp, S_IFDIR, may_flags, &file); rqstp 1989 fs/nfsd/vfs.c nfsd_statfs(struct svc_rqst *rqstp, struct svc_fh *fhp, struct kstatfs *stat, int access) rqstp 1993 fs/nfsd/vfs.c err = fh_verify(rqstp, fhp, 0, NFSD_MAY_NOP | access); rqstp 2005 fs/nfsd/vfs.c static int exp_rdonly(struct svc_rqst *rqstp, struct svc_export *exp) rqstp 2007 fs/nfsd/vfs.c return nfsexp_flags(rqstp, exp) & NFSEXP_READONLY; rqstp 2014 fs/nfsd/vfs.c nfsd_permission(struct svc_rqst *rqstp, struct svc_export *exp, rqstp 2046 fs/nfsd/vfs.c if (exp_rdonly(rqstp, exp) || rqstp 43 fs/nfsd/vfs.h int nfsd_cross_mnt(struct svc_rqst *rqstp, struct dentry **dpp, rqstp 81 fs/nfsd/vfs.h __be32 nfsd_splice_read(struct svc_rqst *rqstp, struct svc_fh *fhp, rqstp 85 fs/nfsd/vfs.h __be32 nfsd_readv(struct svc_rqst *rqstp, struct svc_fh *fhp, rqstp 95 fs/nfsd/vfs.h __be32 nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, rqstp 162 fs/nfsd/xdr.h __be32 *nfs2svc_encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, struct kstat *stat); rqstp 190 fs/nfsd/xdr3.h struct svc_rqst * rqstp; rqstp 316 fs/nfsd/xdr3.h __be32 *nfs3svc_encode_post_op_attr(struct svc_rqst *rqstp, __be32 *p, rqstp 656 fs/nfsd/xdr4.h struct svc_rqst *rqstp; rqstp 670 fs/nfsd/xdr4.h struct svc_rqst * rqstp; rqstp 681 fs/nfsd/xdr4.h struct nfsd4_compoundargs *args = resp->rqstp->rq_argp; rqstp 700 fs/nfsd/xdr4.h static inline bool nfsd4_last_compound_op(struct svc_rqst *rqstp) rqstp 702 fs/nfsd/xdr4.h struct nfsd4_compoundres *resp = rqstp->rq_resp; rqstp 703 fs/nfsd/xdr4.h struct nfsd4_compoundargs *argp = rqstp->rq_argp; rqstp 709 fs/nfsd/xdr4.h int nfsd4_max_reply(struct svc_rqst *rqstp, struct nfsd4_op *op); rqstp 731 fs/nfsd/xdr4.h bool nfsd4_mach_creds_match(struct nfs4_client *cl, struct svc_rqst *rqstp); rqstp 742 fs/nfsd/xdr4.h extern __be32 nfsd4_setclientid(struct svc_rqst *rqstp, rqstp 744 fs/nfsd/xdr4.h extern __be32 nfsd4_setclientid_confirm(struct svc_rqst *rqstp, rqstp 746 fs/nfsd/xdr4.h extern __be32 nfsd4_exchange_id(struct svc_rqst *rqstp, rqstp 765 fs/nfsd/xdr4.h extern __be32 nfsd4_process_open2(struct svc_rqst *rqstp, rqstp 770 fs/nfsd/xdr4.h extern __be32 nfsd4_open_confirm(struct svc_rqst *rqstp, rqstp 772 fs/nfsd/xdr4.h extern __be32 nfsd4_close(struct svc_rqst *rqstp, struct nfsd4_compound_state *, rqstp 774 fs/nfsd/xdr4.h extern __be32 nfsd4_open_downgrade(struct svc_rqst *rqstp, rqstp 776 fs/nfsd/xdr4.h extern __be32 nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *, rqstp 778 fs/nfsd/xdr4.h extern __be32 nfsd4_lockt(struct svc_rqst *rqstp, struct nfsd4_compound_state *, rqstp 780 fs/nfsd/xdr4.h extern __be32 nfsd4_locku(struct svc_rqst *rqstp, struct nfsd4_compound_state *, rqstp 783 fs/nfsd/xdr4.h nfsd4_release_lockowner(struct svc_rqst *rqstp, rqstp 785 fs/nfsd/xdr4.h extern void nfsd4_release_compoundargs(struct svc_rqst *rqstp); rqstp 786 fs/nfsd/xdr4.h extern __be32 nfsd4_delegreturn(struct svc_rqst *rqstp, rqstp 788 fs/nfsd/xdr4.h extern __be32 nfsd4_renew(struct svc_rqst *rqstp, struct nfsd4_compound_state *, rqstp 790 fs/nfsd/xdr4.h extern __be32 nfsd4_test_stateid(struct svc_rqst *rqstp, rqstp 792 fs/nfsd/xdr4.h extern __be32 nfsd4_free_stateid(struct svc_rqst *rqstp, rqstp 236 include/linux/lockd/lockd.h struct nlm_host *nlmsvc_lookup_host(const struct svc_rqst *rqstp, rqstp 345 include/linux/lockd/lockd.h static inline int nlm_privileged_requester(const struct svc_rqst *rqstp) rqstp 347 include/linux/lockd/lockd.h const struct sockaddr *sap = svc_addr(rqstp); rqstp 51 include/linux/sunrpc/bc_xprt.h static inline bool svc_is_backchannel(const struct svc_rqst *rqstp) rqstp 53 include/linux/sunrpc/bc_xprt.h return rqstp->rq_server->sv_bc_enabled; rqstp 72 include/linux/sunrpc/bc_xprt.h static inline bool svc_is_backchannel(const struct svc_rqst *rqstp) rqstp 213 include/linux/sunrpc/cache.h struct cache_head *h, struct cache_req *rqstp); rqstp 152 include/linux/sunrpc/svc.h extern u32 svc_max_payload(const struct svc_rqst *rqstp); rqstp 343 include/linux/sunrpc/svc.h xdr_argsize_check(struct svc_rqst *rqstp, __be32 *p) rqstp 346 include/linux/sunrpc/svc.h struct kvec *vec = &rqstp->rq_arg.head[0]; rqstp 352 include/linux/sunrpc/svc.h xdr_ressize_check(struct svc_rqst *rqstp, __be32 *p) rqstp 354 include/linux/sunrpc/svc.h struct kvec *vec = &rqstp->rq_res.head[0]; rqstp 362 include/linux/sunrpc/svc.h static inline void svc_free_res_pages(struct svc_rqst *rqstp) rqstp 364 include/linux/sunrpc/svc.h while (rqstp->rq_next_page != rqstp->rq_respages) { rqstp 365 include/linux/sunrpc/svc.h struct page **pp = --rqstp->rq_next_page; rqstp 517 include/linux/sunrpc/svc.h void svc_reserve(struct svc_rqst *rqstp, int space); rqstp 520 include/linux/sunrpc/svc.h unsigned int svc_fill_write_vector(struct svc_rqst *rqstp, rqstp 523 include/linux/sunrpc/svc.h char *svc_fill_symlink_pathname(struct svc_rqst *rqstp, rqstp 526 include/linux/sunrpc/svc.h __be32 svc_return_autherr(struct svc_rqst *rqstp, __be32 auth_err); rqstp 527 include/linux/sunrpc/svc.h __be32 svc_generic_init_request(struct svc_rqst *rqstp, rqstp 550 include/linux/sunrpc/svc.h static inline void svc_reserve_auth(struct svc_rqst *rqstp, int space) rqstp 552 include/linux/sunrpc/svc.h svc_reserve(rqstp, space + rqstp->rq_auth_slack); rqstp 165 include/linux/sunrpc/svc_rdma.h extern void svc_rdma_release_rqst(struct svc_rqst *rqstp); rqstp 171 include/linux/sunrpc/svc_rdma.h struct svc_rqst *rqstp, rqstp 27 include/linux/sunrpc/svc_xprt.h void (*xpo_secure_port)(struct svc_rqst *rqstp); rqstp 128 include/linux/sunrpc/svc_xprt.h void svc_xprt_copy_addrs(struct svc_rqst *rqstp, struct svc_xprt *xprt); rqstp 154 include/linux/sunrpc/svcauth.h extern int svc_authenticate(struct svc_rqst *rqstp, __be32 *authp); rqstp 155 include/linux/sunrpc/svcauth.h extern int svc_authorise(struct svc_rqst *rqstp); rqstp 156 include/linux/sunrpc/svcauth.h extern int svc_set_client(struct svc_rqst *rqstp); rqstp 169 include/linux/sunrpc/svcauth.h extern int svcauth_unix_set_client(struct svc_rqst *rqstp); rqstp 246 include/linux/sunrpc/xdr.h typedef void (*kxdreproc_t)(struct rpc_rqst *rqstp, struct xdr_stream *xdr, rqstp 248 include/linux/sunrpc/xdr.h typedef int (*kxdrdproc_t)(struct rpc_rqst *rqstp, struct xdr_stream *xdr, rqstp 1731 net/sunrpc/auth_gss/auth_gss.c struct rpc_rqst *rqstp = task->tk_rqstp; rqstp 1732 net/sunrpc/auth_gss/auth_gss.c struct xdr_buf integ_buf, *snd_buf = &rqstp->rq_snd_buf; rqstp 1741 net/sunrpc/auth_gss/auth_gss.c *p = cpu_to_be32(rqstp->rq_seqno); rqstp 1773 net/sunrpc/auth_gss/auth_gss.c priv_release_snd_buf(struct rpc_rqst *rqstp) rqstp 1777 net/sunrpc/auth_gss/auth_gss.c for (i=0; i < rqstp->rq_enc_pages_num; i++) rqstp 1778 net/sunrpc/auth_gss/auth_gss.c __free_page(rqstp->rq_enc_pages[i]); rqstp 1779 net/sunrpc/auth_gss/auth_gss.c kfree(rqstp->rq_enc_pages); rqstp 1780 net/sunrpc/auth_gss/auth_gss.c rqstp->rq_release_snd_buf = NULL; rqstp 1784 net/sunrpc/auth_gss/auth_gss.c alloc_enc_pages(struct rpc_rqst *rqstp) rqstp 1786 net/sunrpc/auth_gss/auth_gss.c struct xdr_buf *snd_buf = &rqstp->rq_snd_buf; rqstp 1789 net/sunrpc/auth_gss/auth_gss.c if (rqstp->rq_release_snd_buf) rqstp 1790 net/sunrpc/auth_gss/auth_gss.c rqstp->rq_release_snd_buf(rqstp); rqstp 1793 net/sunrpc/auth_gss/auth_gss.c rqstp->rq_enc_pages_num = 0; rqstp 1799 net/sunrpc/auth_gss/auth_gss.c rqstp->rq_enc_pages_num = last - first + 1 + 1; rqstp 1800 net/sunrpc/auth_gss/auth_gss.c rqstp->rq_enc_pages rqstp 1801 net/sunrpc/auth_gss/auth_gss.c = kmalloc_array(rqstp->rq_enc_pages_num, rqstp 1804 net/sunrpc/auth_gss/auth_gss.c if (!rqstp->rq_enc_pages) rqstp 1806 net/sunrpc/auth_gss/auth_gss.c for (i=0; i < rqstp->rq_enc_pages_num; i++) { rqstp 1807 net/sunrpc/auth_gss/auth_gss.c rqstp->rq_enc_pages[i] = alloc_page(GFP_NOFS); rqstp 1808 net/sunrpc/auth_gss/auth_gss.c if (rqstp->rq_enc_pages[i] == NULL) rqstp 1811 net/sunrpc/auth_gss/auth_gss.c rqstp->rq_release_snd_buf = priv_release_snd_buf; rqstp 1814 net/sunrpc/auth_gss/auth_gss.c rqstp->rq_enc_pages_num = i; rqstp 1815 net/sunrpc/auth_gss/auth_gss.c priv_release_snd_buf(rqstp); rqstp 1823 net/sunrpc/auth_gss/auth_gss.c struct rpc_rqst *rqstp = task->tk_rqstp; rqstp 1824 net/sunrpc/auth_gss/auth_gss.c struct xdr_buf *snd_buf = &rqstp->rq_snd_buf; rqstp 1837 net/sunrpc/auth_gss/auth_gss.c *p = cpu_to_be32(rqstp->rq_seqno); rqstp 1842 net/sunrpc/auth_gss/auth_gss.c status = alloc_enc_pages(rqstp); rqstp 1847 net/sunrpc/auth_gss/auth_gss.c snd_buf->pages = rqstp->rq_enc_pages; rqstp 1858 net/sunrpc/auth_gss/auth_gss.c tmp = page_address(rqstp->rq_enc_pages[rqstp->rq_enc_pages_num - 1]); rqstp 1953 net/sunrpc/auth_gss/auth_gss.c struct gss_cl_ctx *ctx, struct rpc_rqst *rqstp, rqstp 1956 net/sunrpc/auth_gss/auth_gss.c struct xdr_buf gss_data, *rcv_buf = &rqstp->rq_rcv_buf; rqstp 1973 net/sunrpc/auth_gss/auth_gss.c if (seqno != rqstp->rq_seqno) rqstp 2018 net/sunrpc/auth_gss/auth_gss.c trace_rpcgss_bad_seqno(task, rqstp->rq_seqno, seqno); rqstp 2027 net/sunrpc/auth_gss/auth_gss.c struct gss_cl_ctx *ctx, struct rpc_rqst *rqstp, rqstp 2030 net/sunrpc/auth_gss/auth_gss.c struct xdr_buf *rcv_buf = &rqstp->rq_rcv_buf; rqstp 2031 net/sunrpc/auth_gss/auth_gss.c struct kvec *head = rqstp->rq_rcv_buf.head; rqstp 2051 net/sunrpc/auth_gss/auth_gss.c if (be32_to_cpup(p++) != rqstp->rq_seqno) rqstp 2057 net/sunrpc/auth_gss/auth_gss.c xdr_init_decode(xdr, rcv_buf, p, rqstp); rqstp 2067 net/sunrpc/auth_gss/auth_gss.c trace_rpcgss_bad_seqno(task, rqstp->rq_seqno, be32_to_cpup(--p)); rqstp 2120 net/sunrpc/auth_gss/auth_gss.c struct rpc_rqst *rqstp = task->tk_rqstp; rqstp 2121 net/sunrpc/auth_gss/auth_gss.c struct rpc_cred *cred = rqstp->rq_cred; rqstp 2134 net/sunrpc/auth_gss/auth_gss.c status = gss_unwrap_resp_integ(task, cred, ctx, rqstp, xdr); rqstp 2137 net/sunrpc/auth_gss/auth_gss.c status = gss_unwrap_resp_priv(task, cred, ctx, rqstp, xdr); rqstp 780 net/sunrpc/auth_gss/gss_rpc_xdr.c int gssx_dec_accept_sec_context(struct rpc_rqst *rqstp, rqstp 170 net/sunrpc/auth_gss/gss_rpc_xdr.h int gssx_dec_accept_sec_context(struct rpc_rqst *rqstp, rqstp 681 net/sunrpc/auth_gss/svcauth_gss.c gss_verify_header(struct svc_rqst *rqstp, struct rsc *rsci, rqstp 688 net/sunrpc/auth_gss/svcauth_gss.c struct kvec *argv = &rqstp->rq_arg.head[0]; rqstp 705 net/sunrpc/auth_gss/svcauth_gss.c if (rqstp->rq_deferred) /* skip verification of revisited request */ rqstp 727 net/sunrpc/auth_gss/svcauth_gss.c gss_write_null_verf(struct svc_rqst *rqstp) rqstp 731 net/sunrpc/auth_gss/svcauth_gss.c svc_putnl(rqstp->rq_res.head, RPC_AUTH_NULL); rqstp 732 net/sunrpc/auth_gss/svcauth_gss.c p = rqstp->rq_res.head->iov_base + rqstp->rq_res.head->iov_len; rqstp 735 net/sunrpc/auth_gss/svcauth_gss.c if (!xdr_ressize_check(rqstp, p)) rqstp 741 net/sunrpc/auth_gss/svcauth_gss.c gss_write_verf(struct svc_rqst *rqstp, struct gss_ctx *ctx_id, u32 seq) rqstp 751 net/sunrpc/auth_gss/svcauth_gss.c svc_putnl(rqstp->rq_res.head, RPC_AUTH_GSS); rqstp 760 net/sunrpc/auth_gss/svcauth_gss.c p = rqstp->rq_res.head->iov_base + rqstp->rq_res.head->iov_len; rqstp 768 net/sunrpc/auth_gss/svcauth_gss.c if (!xdr_ressize_check(rqstp, p)) rqstp 856 net/sunrpc/auth_gss/svcauth_gss.c unwrap_integ_data(struct svc_rqst *rqstp, struct xdr_buf *buf, u32 seq, struct gss_ctx *ctx) rqstp 869 net/sunrpc/auth_gss/svcauth_gss.c clear_bit(RQ_SPLICE_OK, &rqstp->rq_flags); rqstp 872 net/sunrpc/auth_gss/svcauth_gss.c if (rqstp->rq_deferred) rqstp 925 net/sunrpc/auth_gss/svcauth_gss.c unwrap_priv_data(struct svc_rqst *rqstp, struct xdr_buf *buf, u32 seq, struct gss_ctx *ctx) rqstp 930 net/sunrpc/auth_gss/svcauth_gss.c clear_bit(RQ_SPLICE_OK, &rqstp->rq_flags); rqstp 933 net/sunrpc/auth_gss/svcauth_gss.c if (rqstp->rq_deferred) { rqstp 981 net/sunrpc/auth_gss/svcauth_gss.c svcauth_gss_set_client(struct svc_rqst *rqstp) rqstp 983 net/sunrpc/auth_gss/svcauth_gss.c struct gss_svc_data *svcdata = rqstp->rq_auth_data; rqstp 997 net/sunrpc/auth_gss/svcauth_gss.c rqstp->rq_gssclient = find_gss_auth_domain(rsci->mechctx, gc->gc_svc); rqstp 998 net/sunrpc/auth_gss/svcauth_gss.c if (rqstp->rq_gssclient == NULL) rqstp 1000 net/sunrpc/auth_gss/svcauth_gss.c stat = svcauth_unix_set_client(rqstp); rqstp 1007 net/sunrpc/auth_gss/svcauth_gss.c gss_write_init_verf(struct cache_detail *cd, struct svc_rqst *rqstp, rqstp 1014 net/sunrpc/auth_gss/svcauth_gss.c return gss_write_null_verf(rqstp); rqstp 1018 net/sunrpc/auth_gss/svcauth_gss.c return gss_write_null_verf(rqstp); rqstp 1020 net/sunrpc/auth_gss/svcauth_gss.c rc = gss_write_verf(rqstp, rsci->mechctx, GSS_SEQ_WIN); rqstp 1091 net/sunrpc/auth_gss/svcauth_gss.c static int gss_read_proxy_verf(struct svc_rqst *rqstp, rqstp 1096 net/sunrpc/auth_gss/svcauth_gss.c struct kvec *argv = &rqstp->rq_arg.head[0]; rqstp 1106 net/sunrpc/auth_gss/svcauth_gss.c if (inlen > (argv->iov_len + rqstp->rq_arg.page_len)) rqstp 1128 net/sunrpc/auth_gss/svcauth_gss.c page_base = rqstp->rq_arg.page_base; rqstp 1132 net/sunrpc/auth_gss/svcauth_gss.c page_address(rqstp->rq_arg.pages[i]) + page_base, rqstp 1169 net/sunrpc/auth_gss/svcauth_gss.c static int svcauth_gss_legacy_init(struct svc_rqst *rqstp, rqstp 1172 net/sunrpc/auth_gss/svcauth_gss.c struct kvec *argv = &rqstp->rq_arg.head[0]; rqstp 1173 net/sunrpc/auth_gss/svcauth_gss.c struct kvec *resv = &rqstp->rq_res.head[0]; rqstp 1176 net/sunrpc/auth_gss/svcauth_gss.c struct sunrpc_net *sn = net_generic(SVC_NET(rqstp), sunrpc_net_id); rqstp 1189 net/sunrpc/auth_gss/svcauth_gss.c if (cache_check(sn->rsi_cache, &rsip->h, &rqstp->rq_chandle) < 0) rqstp 1195 net/sunrpc/auth_gss/svcauth_gss.c if (gss_write_init_verf(sn->rsc_cache, rqstp, rqstp 1282 net/sunrpc/auth_gss/svcauth_gss.c static int svcauth_gss_proxy_init(struct svc_rqst *rqstp, rqstp 1285 net/sunrpc/auth_gss/svcauth_gss.c struct kvec *resv = &rqstp->rq_res.head[0]; rqstp 1291 net/sunrpc/auth_gss/svcauth_gss.c struct net *net = SVC_NET(rqstp); rqstp 1295 net/sunrpc/auth_gss/svcauth_gss.c ret = gss_read_proxy_verf(rqstp, gc, authp, rqstp 1331 net/sunrpc/auth_gss/svcauth_gss.c if (gss_write_init_verf(sn->rsc_cache, rqstp, rqstp 1479 net/sunrpc/auth_gss/svcauth_gss.c svcauth_gss_accept(struct svc_rqst *rqstp, __be32 *authp) rqstp 1481 net/sunrpc/auth_gss/svcauth_gss.c struct kvec *argv = &rqstp->rq_arg.head[0]; rqstp 1482 net/sunrpc/auth_gss/svcauth_gss.c struct kvec *resv = &rqstp->rq_res.head[0]; rqstp 1484 net/sunrpc/auth_gss/svcauth_gss.c struct gss_svc_data *svcdata = rqstp->rq_auth_data; rqstp 1490 net/sunrpc/auth_gss/svcauth_gss.c struct sunrpc_net *sn = net_generic(SVC_NET(rqstp), sunrpc_net_id); rqstp 1500 net/sunrpc/auth_gss/svcauth_gss.c rqstp->rq_auth_data = svcdata; rqstp 1529 net/sunrpc/auth_gss/svcauth_gss.c if ((gc->gc_proc != RPC_GSS_PROC_DATA) && (rqstp->rq_proc != 0)) rqstp 1536 net/sunrpc/auth_gss/svcauth_gss.c if (use_gss_proxy(SVC_NET(rqstp))) rqstp 1537 net/sunrpc/auth_gss/svcauth_gss.c return svcauth_gss_proxy_init(rqstp, gc, authp); rqstp 1539 net/sunrpc/auth_gss/svcauth_gss.c return svcauth_gss_legacy_init(rqstp, gc, authp); rqstp 1547 net/sunrpc/auth_gss/svcauth_gss.c switch (gss_verify_header(rqstp, rsci, rpcstart, gc, authp)) { rqstp 1564 net/sunrpc/auth_gss/svcauth_gss.c if (gss_write_verf(rqstp, rsci->mechctx, gc->gc_seq)) rqstp 1575 net/sunrpc/auth_gss/svcauth_gss.c if (gss_write_verf(rqstp, rsci->mechctx, gc->gc_seq)) rqstp 1577 net/sunrpc/auth_gss/svcauth_gss.c rqstp->rq_cred = rsci->cred; rqstp 1587 net/sunrpc/auth_gss/svcauth_gss.c if (unwrap_integ_data(rqstp, &rqstp->rq_arg, rqstp 1590 net/sunrpc/auth_gss/svcauth_gss.c rqstp->rq_auth_slack = RPC_MAX_AUTH_SIZE; rqstp 1596 net/sunrpc/auth_gss/svcauth_gss.c if (unwrap_priv_data(rqstp, &rqstp->rq_arg, rqstp 1599 net/sunrpc/auth_gss/svcauth_gss.c rqstp->rq_auth_slack = RPC_MAX_AUTH_SIZE * 2; rqstp 1606 net/sunrpc/auth_gss/svcauth_gss.c rqstp->rq_cred.cr_flavor = gss_svc_to_pseudoflavor( rqstp 1618 net/sunrpc/auth_gss/svcauth_gss.c xdr_ressize_check(rqstp, reject_stat); rqstp 1660 net/sunrpc/auth_gss/svcauth_gss.c svcauth_gss_wrap_resp_integ(struct svc_rqst *rqstp) rqstp 1662 net/sunrpc/auth_gss/svcauth_gss.c struct gss_svc_data *gsd = (struct gss_svc_data *)rqstp->rq_auth_data; rqstp 1664 net/sunrpc/auth_gss/svcauth_gss.c struct xdr_buf *resbuf = &rqstp->rq_res; rqstp 1709 net/sunrpc/auth_gss/svcauth_gss.c svcauth_gss_wrap_resp_priv(struct svc_rqst *rqstp) rqstp 1711 net/sunrpc/auth_gss/svcauth_gss.c struct gss_svc_data *gsd = (struct gss_svc_data *)rqstp->rq_auth_data; rqstp 1713 net/sunrpc/auth_gss/svcauth_gss.c struct xdr_buf *resbuf = &rqstp->rq_res; rqstp 1774 net/sunrpc/auth_gss/svcauth_gss.c svcauth_gss_release(struct svc_rqst *rqstp) rqstp 1776 net/sunrpc/auth_gss/svcauth_gss.c struct gss_svc_data *gsd = (struct gss_svc_data *)rqstp->rq_auth_data; rqstp 1778 net/sunrpc/auth_gss/svcauth_gss.c struct xdr_buf *resbuf = &rqstp->rq_res; rqstp 1780 net/sunrpc/auth_gss/svcauth_gss.c struct sunrpc_net *sn = net_generic(SVC_NET(rqstp), sunrpc_net_id); rqstp 1795 net/sunrpc/auth_gss/svcauth_gss.c stat = svcauth_gss_wrap_resp_integ(rqstp); rqstp 1800 net/sunrpc/auth_gss/svcauth_gss.c stat = svcauth_gss_wrap_resp_priv(rqstp); rqstp 1813 net/sunrpc/auth_gss/svcauth_gss.c if (rqstp->rq_client) rqstp 1814 net/sunrpc/auth_gss/svcauth_gss.c auth_domain_put(rqstp->rq_client); rqstp 1815 net/sunrpc/auth_gss/svcauth_gss.c rqstp->rq_client = NULL; rqstp 1816 net/sunrpc/auth_gss/svcauth_gss.c if (rqstp->rq_gssclient) rqstp 1817 net/sunrpc/auth_gss/svcauth_gss.c auth_domain_put(rqstp->rq_gssclient); rqstp 1818 net/sunrpc/auth_gss/svcauth_gss.c rqstp->rq_gssclient = NULL; rqstp 1819 net/sunrpc/auth_gss/svcauth_gss.c if (rqstp->rq_cred.cr_group_info) rqstp 1820 net/sunrpc/auth_gss/svcauth_gss.c put_group_info(rqstp->rq_cred.cr_group_info); rqstp 1821 net/sunrpc/auth_gss/svcauth_gss.c rqstp->rq_cred.cr_group_info = NULL; rqstp 274 net/sunrpc/cache.c struct cache_head *h, struct cache_req *rqstp) rqstp 286 net/sunrpc/cache.c if (rqstp == NULL) { rqstp 307 net/sunrpc/cache.c if (!cache_defer_req(rqstp, h)) { rqstp 2709 net/sunrpc/clnt.c static void rpcproc_encode_null(struct rpc_rqst *rqstp, struct xdr_stream *xdr, rqstp 2714 net/sunrpc/clnt.c static int rpcproc_decode_null(struct rpc_rqst *rqstp, struct xdr_stream *xdr, rqstp 565 net/sunrpc/svc.c svc_init_buffer(struct svc_rqst *rqstp, unsigned int size, int node) rqstp 570 net/sunrpc/svc.c if (svc_is_backchannel(rqstp)) rqstp 584 net/sunrpc/svc.c rqstp->rq_pages[arghi++] = p; rqstp 594 net/sunrpc/svc.c svc_release_buffer(struct svc_rqst *rqstp) rqstp 598 net/sunrpc/svc.c for (i = 0; i < ARRAY_SIZE(rqstp->rq_pages); i++) rqstp 599 net/sunrpc/svc.c if (rqstp->rq_pages[i]) rqstp 600 net/sunrpc/svc.c put_page(rqstp->rq_pages[i]); rqstp 606 net/sunrpc/svc.c struct svc_rqst *rqstp; rqstp 608 net/sunrpc/svc.c rqstp = kzalloc_node(sizeof(*rqstp), GFP_KERNEL, node); rqstp 609 net/sunrpc/svc.c if (!rqstp) rqstp 610 net/sunrpc/svc.c return rqstp; rqstp 612 net/sunrpc/svc.c __set_bit(RQ_BUSY, &rqstp->rq_flags); rqstp 613 net/sunrpc/svc.c spin_lock_init(&rqstp->rq_lock); rqstp 614 net/sunrpc/svc.c rqstp->rq_server = serv; rqstp 615 net/sunrpc/svc.c rqstp->rq_pool = pool; rqstp 617 net/sunrpc/svc.c rqstp->rq_argp = kmalloc_node(serv->sv_xdrsize, GFP_KERNEL, node); rqstp 618 net/sunrpc/svc.c if (!rqstp->rq_argp) rqstp 621 net/sunrpc/svc.c rqstp->rq_resp = kmalloc_node(serv->sv_xdrsize, GFP_KERNEL, node); rqstp 622 net/sunrpc/svc.c if (!rqstp->rq_resp) rqstp 625 net/sunrpc/svc.c if (!svc_init_buffer(rqstp, serv->sv_max_mesg, node)) rqstp 628 net/sunrpc/svc.c return rqstp; rqstp 630 net/sunrpc/svc.c svc_rqst_free(rqstp); rqstp 638 net/sunrpc/svc.c struct svc_rqst *rqstp; rqstp 640 net/sunrpc/svc.c rqstp = svc_rqst_alloc(serv, pool, node); rqstp 641 net/sunrpc/svc.c if (!rqstp) rqstp 647 net/sunrpc/svc.c list_add_rcu(&rqstp->rq_all, &pool->sp_all_threads); rqstp 649 net/sunrpc/svc.c return rqstp; rqstp 690 net/sunrpc/svc.c struct svc_rqst *rqstp; rqstp 696 net/sunrpc/svc.c rqstp = list_entry(pool->sp_all_threads.next, struct svc_rqst, rq_all); rqstp 697 net/sunrpc/svc.c set_bit(RQ_VICTIM, &rqstp->rq_flags); rqstp 698 net/sunrpc/svc.c list_del_rcu(&rqstp->rq_all); rqstp 699 net/sunrpc/svc.c task = rqstp->rq_task; rqstp 710 net/sunrpc/svc.c struct svc_rqst *rqstp; rqstp 721 net/sunrpc/svc.c rqstp = svc_prepare_thread(serv, chosen_pool, node); rqstp 722 net/sunrpc/svc.c if (IS_ERR(rqstp)) rqstp 723 net/sunrpc/svc.c return PTR_ERR(rqstp); rqstp 726 net/sunrpc/svc.c task = kthread_create_on_node(serv->sv_ops->svo_function, rqstp, rqstp 730 net/sunrpc/svc.c svc_exit_thread(rqstp); rqstp 734 net/sunrpc/svc.c rqstp->rq_task = task; rqstp 842 net/sunrpc/svc.c svc_rqst_free(struct svc_rqst *rqstp) rqstp 844 net/sunrpc/svc.c svc_release_buffer(rqstp); rqstp 845 net/sunrpc/svc.c kfree(rqstp->rq_resp); rqstp 846 net/sunrpc/svc.c kfree(rqstp->rq_argp); rqstp 847 net/sunrpc/svc.c kfree(rqstp->rq_auth_data); rqstp 848 net/sunrpc/svc.c kfree_rcu(rqstp, rq_rcu_head); rqstp 853 net/sunrpc/svc.c svc_exit_thread(struct svc_rqst *rqstp) rqstp 855 net/sunrpc/svc.c struct svc_serv *serv = rqstp->rq_server; rqstp 856 net/sunrpc/svc.c struct svc_pool *pool = rqstp->rq_pool; rqstp 860 net/sunrpc/svc.c if (!test_and_set_bit(RQ_VICTIM, &rqstp->rq_flags)) rqstp 861 net/sunrpc/svc.c list_del_rcu(&rqstp->rq_all); rqstp 864 net/sunrpc/svc.c svc_rqst_free(rqstp); rqstp 1152 net/sunrpc/svc.c void svc_printk(struct svc_rqst *rqstp, const char *fmt, ...) rqstp 1163 net/sunrpc/svc.c dprintk("svc: %s: %pV", svc_print_addr(rqstp, buf, sizeof(buf)), &vaf); rqstp 1168 net/sunrpc/svc.c static __printf(2,3) void svc_printk(struct svc_rqst *rqstp, const char *fmt, ...) {} rqstp 1172 net/sunrpc/svc.c svc_return_autherr(struct svc_rqst *rqstp, __be32 auth_err) rqstp 1174 net/sunrpc/svc.c set_bit(RQ_AUTHERR, &rqstp->rq_flags); rqstp 1180 net/sunrpc/svc.c svc_get_autherr(struct svc_rqst *rqstp, __be32 *statp) rqstp 1182 net/sunrpc/svc.c if (test_and_clear_bit(RQ_AUTHERR, &rqstp->rq_flags)) rqstp 1188 net/sunrpc/svc.c svc_generic_dispatch(struct svc_rqst *rqstp, __be32 *statp) rqstp 1190 net/sunrpc/svc.c struct kvec *argv = &rqstp->rq_arg.head[0]; rqstp 1191 net/sunrpc/svc.c struct kvec *resv = &rqstp->rq_res.head[0]; rqstp 1192 net/sunrpc/svc.c const struct svc_procedure *procp = rqstp->rq_procinfo; rqstp 1199 net/sunrpc/svc.c !procp->pc_decode(rqstp, argv->iov_base)) { rqstp 1204 net/sunrpc/svc.c *statp = procp->pc_func(rqstp); rqstp 1207 net/sunrpc/svc.c test_bit(RQ_DROPME, &rqstp->rq_flags)) rqstp 1210 net/sunrpc/svc.c if (test_bit(RQ_AUTHERR, &rqstp->rq_flags)) rqstp 1218 net/sunrpc/svc.c !procp->pc_encode(rqstp, resv->iov_base + resv->iov_len)) { rqstp 1227 net/sunrpc/svc.c svc_generic_init_request(struct svc_rqst *rqstp, rqstp 1234 net/sunrpc/svc.c if (rqstp->rq_vers >= progp->pg_nvers ) rqstp 1236 net/sunrpc/svc.c versp = progp->pg_vers[rqstp->rq_vers]; rqstp 1251 net/sunrpc/svc.c if (versp->vs_need_cong_ctrl && rqstp->rq_xprt && rqstp 1252 net/sunrpc/svc.c !test_bit(XPT_CONG_CTRL, &rqstp->rq_xprt->xpt_flags)) rqstp 1255 net/sunrpc/svc.c if (rqstp->rq_proc >= versp->vs_nproc) rqstp 1257 net/sunrpc/svc.c rqstp->rq_procinfo = procp = &versp->vs_proc[rqstp->rq_proc]; rqstp 1262 net/sunrpc/svc.c memset(rqstp->rq_argp, 0, procp->pc_argsize); rqstp 1263 net/sunrpc/svc.c memset(rqstp->rq_resp, 0, procp->pc_ressize); rqstp 1266 net/sunrpc/svc.c versp->vs_count[rqstp->rq_proc]++; rqstp 1283 net/sunrpc/svc.c svc_process_common(struct svc_rqst *rqstp, struct kvec *argv, struct kvec *resv) rqstp 1287 net/sunrpc/svc.c struct svc_serv *serv = rqstp->rq_server; rqstp 1301 net/sunrpc/svc.c set_bit(RQ_SPLICE_OK, &rqstp->rq_flags); rqstp 1303 net/sunrpc/svc.c set_bit(RQ_USEDEFERRAL, &rqstp->rq_flags); rqstp 1304 net/sunrpc/svc.c clear_bit(RQ_DROPME, &rqstp->rq_flags); rqstp 1306 net/sunrpc/svc.c svc_putu32(resv, rqstp->rq_xid); rqstp 1321 net/sunrpc/svc.c rqstp->rq_prog = prog = svc_getnl(argv); /* program number */ rqstp 1322 net/sunrpc/svc.c rqstp->rq_vers = svc_getnl(argv); /* version number */ rqstp 1323 net/sunrpc/svc.c rqstp->rq_proc = svc_getnl(argv); /* procedure number */ rqstp 1334 net/sunrpc/svc.c auth_res = svc_authenticate(rqstp, &auth_stat); rqstp 1338 net/sunrpc/svc.c auth_res = progp->pg_authenticate(rqstp); rqstp 1361 net/sunrpc/svc.c rpc_stat = progp->pg_init_request(rqstp, progp, &process); rqstp 1373 net/sunrpc/svc.c procp = rqstp->rq_procinfo; rqstp 1380 net/sunrpc/svc.c trace_svc_process(rqstp, progp->pg_name); rqstp 1390 net/sunrpc/svc.c svc_reserve_auth(rqstp, procp->pc_xdrressize<<2); rqstp 1394 net/sunrpc/svc.c if (!svc_generic_dispatch(rqstp, statp)) rqstp 1398 net/sunrpc/svc.c auth_stat = svc_get_autherr(rqstp, statp); rqstp 1403 net/sunrpc/svc.c if (!process.dispatch(rqstp, statp)) rqstp 1413 net/sunrpc/svc.c procp->pc_release(rqstp); rqstp 1419 net/sunrpc/svc.c if (svc_authorise(rqstp)) rqstp 1425 net/sunrpc/svc.c procp->pc_release(rqstp); rqstp 1427 net/sunrpc/svc.c svc_authorise(rqstp); /* doesn't hurt to call this twice */ rqstp 1432 net/sunrpc/svc.c if (rqstp->rq_xprt && test_bit(XPT_TEMP, &rqstp->rq_xprt->xpt_flags)) rqstp 1433 net/sunrpc/svc.c svc_close_xprt(rqstp->rq_xprt); rqstp 1438 net/sunrpc/svc.c svc_printk(rqstp, "short len %zd, dropping request\n", rqstp 1452 net/sunrpc/svc.c procp->pc_release(rqstp); rqstp 1457 net/sunrpc/svc.c xdr_ressize_check(rqstp, reply_statp); rqstp 1470 net/sunrpc/svc.c svc_printk(rqstp, "unknown version (%d for prog %d, %s)\n", rqstp 1471 net/sunrpc/svc.c rqstp->rq_vers, rqstp->rq_prog, progp->pg_name); rqstp 1480 net/sunrpc/svc.c svc_printk(rqstp, "unknown procedure (%d)\n", rqstp->rq_proc); rqstp 1487 net/sunrpc/svc.c svc_printk(rqstp, "failed to decode args\n"); rqstp 1500 net/sunrpc/svc.c svc_process(struct svc_rqst *rqstp) rqstp 1502 net/sunrpc/svc.c struct kvec *argv = &rqstp->rq_arg.head[0]; rqstp 1503 net/sunrpc/svc.c struct kvec *resv = &rqstp->rq_res.head[0]; rqstp 1504 net/sunrpc/svc.c struct svc_serv *serv = rqstp->rq_server; rqstp 1511 net/sunrpc/svc.c rqstp->rq_next_page = &rqstp->rq_respages[1]; rqstp 1512 net/sunrpc/svc.c resv->iov_base = page_address(rqstp->rq_respages[0]); rqstp 1514 net/sunrpc/svc.c rqstp->rq_res.pages = rqstp->rq_respages + 1; rqstp 1515 net/sunrpc/svc.c rqstp->rq_res.len = 0; rqstp 1516 net/sunrpc/svc.c rqstp->rq_res.page_base = 0; rqstp 1517 net/sunrpc/svc.c rqstp->rq_res.page_len = 0; rqstp 1518 net/sunrpc/svc.c rqstp->rq_res.buflen = PAGE_SIZE; rqstp 1519 net/sunrpc/svc.c rqstp->rq_res.tail[0].iov_base = NULL; rqstp 1520 net/sunrpc/svc.c rqstp->rq_res.tail[0].iov_len = 0; rqstp 1525 net/sunrpc/svc.c svc_printk(rqstp, "bad direction %d, dropping request\n", dir); rqstp 1531 net/sunrpc/svc.c if (rqstp->rq_prot == IPPROTO_TCP) rqstp 1535 net/sunrpc/svc.c if (likely(svc_process_common(rqstp, argv, resv))) rqstp 1536 net/sunrpc/svc.c return svc_send(rqstp); rqstp 1539 net/sunrpc/svc.c svc_drop(rqstp); rqstp 1551 net/sunrpc/svc.c struct svc_rqst *rqstp) rqstp 1553 net/sunrpc/svc.c struct kvec *argv = &rqstp->rq_arg.head[0]; rqstp 1554 net/sunrpc/svc.c struct kvec *resv = &rqstp->rq_res.head[0]; rqstp 1562 net/sunrpc/svc.c rqstp->rq_xid = req->rq_xid; rqstp 1563 net/sunrpc/svc.c rqstp->rq_prot = req->rq_xprt->prot; rqstp 1564 net/sunrpc/svc.c rqstp->rq_server = serv; rqstp 1565 net/sunrpc/svc.c rqstp->rq_bc_net = req->rq_xprt->xprt_net; rqstp 1567 net/sunrpc/svc.c rqstp->rq_addrlen = sizeof(req->rq_xprt->addr); rqstp 1568 net/sunrpc/svc.c memcpy(&rqstp->rq_addr, &req->rq_xprt->addr, rqstp->rq_addrlen); rqstp 1569 net/sunrpc/svc.c memcpy(&rqstp->rq_arg, &req->rq_rcv_buf, sizeof(rqstp->rq_arg)); rqstp 1570 net/sunrpc/svc.c memcpy(&rqstp->rq_res, &req->rq_snd_buf, sizeof(rqstp->rq_res)); rqstp 1573 net/sunrpc/svc.c rqstp->rq_arg.len = req->rq_private_buf.len; rqstp 1574 net/sunrpc/svc.c if (rqstp->rq_arg.len <= rqstp->rq_arg.head[0].iov_len) { rqstp 1575 net/sunrpc/svc.c rqstp->rq_arg.head[0].iov_len = rqstp->rq_arg.len; rqstp 1576 net/sunrpc/svc.c rqstp->rq_arg.page_len = 0; rqstp 1577 net/sunrpc/svc.c } else if (rqstp->rq_arg.len <= rqstp->rq_arg.head[0].iov_len + rqstp 1578 net/sunrpc/svc.c rqstp->rq_arg.page_len) rqstp 1579 net/sunrpc/svc.c rqstp->rq_arg.page_len = rqstp->rq_arg.len - rqstp 1580 net/sunrpc/svc.c rqstp->rq_arg.head[0].iov_len; rqstp 1582 net/sunrpc/svc.c rqstp->rq_arg.len = rqstp->rq_arg.head[0].iov_len + rqstp 1583 net/sunrpc/svc.c rqstp->rq_arg.page_len; rqstp 1596 net/sunrpc/svc.c proc_error = svc_process_common(rqstp, argv, resv); rqstp 1606 net/sunrpc/svc.c memcpy(&req->rq_snd_buf, &rqstp->rq_res, sizeof(req->rq_snd_buf)); rqstp 1627 net/sunrpc/svc.c u32 svc_max_payload(const struct svc_rqst *rqstp) rqstp 1629 net/sunrpc/svc.c u32 max = rqstp->rq_xprt->xpt_class->xcl_max_payload; rqstp 1631 net/sunrpc/svc.c if (rqstp->rq_server->sv_max_payload < max) rqstp 1632 net/sunrpc/svc.c max = rqstp->rq_server->sv_max_payload; rqstp 1646 net/sunrpc/svc.c unsigned int svc_fill_write_vector(struct svc_rqst *rqstp, struct page **pages, rqstp 1649 net/sunrpc/svc.c struct kvec *vec = rqstp->rq_vec; rqstp 1671 net/sunrpc/svc.c WARN_ON_ONCE(i > ARRAY_SIZE(rqstp->rq_vec)); rqstp 1687 net/sunrpc/svc.c char *svc_fill_symlink_pathname(struct svc_rqst *rqstp, struct kvec *first, rqstp 30 net/sunrpc/svc_xprt.c static int svc_deferred_recv(struct svc_rqst *rqstp); rqstp 314 net/sunrpc/svc_xprt.c void svc_xprt_copy_addrs(struct svc_rqst *rqstp, struct svc_xprt *xprt) rqstp 316 net/sunrpc/svc_xprt.c memcpy(&rqstp->rq_addr, &xprt->xpt_remote, xprt->xpt_remotelen); rqstp 317 net/sunrpc/svc_xprt.c rqstp->rq_addrlen = xprt->xpt_remotelen; rqstp 323 net/sunrpc/svc_xprt.c memcpy(&rqstp->rq_daddr, &xprt->xpt_local, xprt->xpt_locallen); rqstp 324 net/sunrpc/svc_xprt.c rqstp->rq_daddrlen = xprt->xpt_locallen; rqstp 335 net/sunrpc/svc_xprt.c char *svc_print_addr(struct svc_rqst *rqstp, char *buf, size_t len) rqstp 337 net/sunrpc/svc_xprt.c return __svc_print_addr(svc_addr(rqstp), buf, len); rqstp 349 net/sunrpc/svc_xprt.c static bool svc_xprt_reserve_slot(struct svc_rqst *rqstp, struct svc_xprt *xprt) rqstp 351 net/sunrpc/svc_xprt.c if (!test_bit(RQ_DATA, &rqstp->rq_flags)) { rqstp 355 net/sunrpc/svc_xprt.c set_bit(RQ_DATA, &rqstp->rq_flags); rqstp 360 net/sunrpc/svc_xprt.c static void svc_xprt_release_slot(struct svc_rqst *rqstp) rqstp 362 net/sunrpc/svc_xprt.c struct svc_xprt *xprt = rqstp->rq_xprt; rqstp 363 net/sunrpc/svc_xprt.c if (test_and_clear_bit(RQ_DATA, &rqstp->rq_flags)) { rqstp 400 net/sunrpc/svc_xprt.c struct svc_rqst *rqstp = NULL; rqstp 426 net/sunrpc/svc_xprt.c list_for_each_entry_rcu(rqstp, &pool->sp_all_threads, rq_all) { rqstp 427 net/sunrpc/svc_xprt.c if (test_and_set_bit(RQ_BUSY, &rqstp->rq_flags)) rqstp 430 net/sunrpc/svc_xprt.c rqstp->rq_qtime = ktime_get(); rqstp 431 net/sunrpc/svc_xprt.c wake_up_process(rqstp->rq_task); rqstp 435 net/sunrpc/svc_xprt.c rqstp = NULL; rqstp 439 net/sunrpc/svc_xprt.c trace_svc_xprt_do_enqueue(xprt, rqstp); rqstp 488 net/sunrpc/svc_xprt.c void svc_reserve(struct svc_rqst *rqstp, int space) rqstp 490 net/sunrpc/svc_xprt.c struct svc_xprt *xprt = rqstp->rq_xprt; rqstp 492 net/sunrpc/svc_xprt.c space += rqstp->rq_res.head[0].iov_len; rqstp 494 net/sunrpc/svc_xprt.c if (xprt && space < rqstp->rq_reserved) { rqstp 495 net/sunrpc/svc_xprt.c atomic_sub((rqstp->rq_reserved - space), &xprt->xpt_reserved); rqstp 496 net/sunrpc/svc_xprt.c rqstp->rq_reserved = space; rqstp 503 net/sunrpc/svc_xprt.c static void svc_xprt_release(struct svc_rqst *rqstp) rqstp 505 net/sunrpc/svc_xprt.c struct svc_xprt *xprt = rqstp->rq_xprt; rqstp 507 net/sunrpc/svc_xprt.c xprt->xpt_ops->xpo_release_rqst(rqstp); rqstp 509 net/sunrpc/svc_xprt.c kfree(rqstp->rq_deferred); rqstp 510 net/sunrpc/svc_xprt.c rqstp->rq_deferred = NULL; rqstp 512 net/sunrpc/svc_xprt.c svc_free_res_pages(rqstp); rqstp 513 net/sunrpc/svc_xprt.c rqstp->rq_res.page_len = 0; rqstp 514 net/sunrpc/svc_xprt.c rqstp->rq_res.page_base = 0; rqstp 521 net/sunrpc/svc_xprt.c if ((rqstp->rq_res.len) > rqstp->rq_reserved) rqstp 523 net/sunrpc/svc_xprt.c rqstp->rq_reserved, rqstp 524 net/sunrpc/svc_xprt.c rqstp->rq_res.len); rqstp 526 net/sunrpc/svc_xprt.c rqstp->rq_res.head[0].iov_len = 0; rqstp 527 net/sunrpc/svc_xprt.c svc_reserve(rqstp, 0); rqstp 528 net/sunrpc/svc_xprt.c svc_xprt_release_slot(rqstp); rqstp 529 net/sunrpc/svc_xprt.c rqstp->rq_xprt = NULL; rqstp 542 net/sunrpc/svc_xprt.c struct svc_rqst *rqstp; rqstp 548 net/sunrpc/svc_xprt.c list_for_each_entry_rcu(rqstp, &pool->sp_all_threads, rq_all) { rqstp 550 net/sunrpc/svc_xprt.c if (test_bit(RQ_BUSY, &rqstp->rq_flags)) rqstp 553 net/sunrpc/svc_xprt.c wake_up_process(rqstp->rq_task); rqstp 554 net/sunrpc/svc_xprt.c trace_svc_wake_up(rqstp->rq_task->pid); rqstp 631 net/sunrpc/svc_xprt.c static int svc_alloc_arg(struct svc_rqst *rqstp) rqstp 633 net/sunrpc/svc_xprt.c struct svc_serv *serv = rqstp->rq_server; rqstp 647 net/sunrpc/svc_xprt.c while (rqstp->rq_pages[i] == NULL) { rqstp 657 net/sunrpc/svc_xprt.c rqstp->rq_pages[i] = p; rqstp 659 net/sunrpc/svc_xprt.c rqstp->rq_page_end = &rqstp->rq_pages[i]; rqstp 660 net/sunrpc/svc_xprt.c rqstp->rq_pages[i++] = NULL; /* this might be seen in nfs_read_actor */ rqstp 663 net/sunrpc/svc_xprt.c arg = &rqstp->rq_arg; rqstp 664 net/sunrpc/svc_xprt.c arg->head[0].iov_base = page_address(rqstp->rq_pages[0]); rqstp 666 net/sunrpc/svc_xprt.c arg->pages = rqstp->rq_pages + 1; rqstp 676 net/sunrpc/svc_xprt.c rqst_should_sleep(struct svc_rqst *rqstp) rqstp 678 net/sunrpc/svc_xprt.c struct svc_pool *pool = rqstp->rq_pool; rqstp 699 net/sunrpc/svc_xprt.c static struct svc_xprt *svc_get_next_xprt(struct svc_rqst *rqstp, long timeout) rqstp 701 net/sunrpc/svc_xprt.c struct svc_pool *pool = rqstp->rq_pool; rqstp 705 net/sunrpc/svc_xprt.c WARN_ON_ONCE(rqstp->rq_xprt); rqstp 707 net/sunrpc/svc_xprt.c rqstp->rq_xprt = svc_xprt_dequeue(pool); rqstp 708 net/sunrpc/svc_xprt.c if (rqstp->rq_xprt) rqstp 718 net/sunrpc/svc_xprt.c clear_bit(RQ_BUSY, &rqstp->rq_flags); rqstp 721 net/sunrpc/svc_xprt.c if (likely(rqst_should_sleep(rqstp))) rqstp 728 net/sunrpc/svc_xprt.c set_bit(RQ_BUSY, &rqstp->rq_flags); rqstp 730 net/sunrpc/svc_xprt.c rqstp->rq_xprt = svc_xprt_dequeue(pool); rqstp 731 net/sunrpc/svc_xprt.c if (rqstp->rq_xprt) rqstp 745 net/sunrpc/svc_xprt.c rqstp->rq_chandle.thread_wait = 5*HZ; rqstp 747 net/sunrpc/svc_xprt.c rqstp->rq_chandle.thread_wait = 1*HZ; rqstp 748 net/sunrpc/svc_xprt.c trace_svc_xprt_dequeue(rqstp); rqstp 749 net/sunrpc/svc_xprt.c return rqstp->rq_xprt; rqstp 768 net/sunrpc/svc_xprt.c static int svc_handle_xprt(struct svc_rqst *rqstp, struct svc_xprt *xprt) rqstp 770 net/sunrpc/svc_xprt.c struct svc_serv *serv = rqstp->rq_server; rqstp 795 net/sunrpc/svc_xprt.c } else if (svc_xprt_reserve_slot(rqstp, xprt)) { rqstp 798 net/sunrpc/svc_xprt.c rqstp, rqstp->rq_pool->sp_id, xprt, rqstp 800 net/sunrpc/svc_xprt.c rqstp->rq_deferred = svc_deferred_dequeue(xprt); rqstp 801 net/sunrpc/svc_xprt.c if (rqstp->rq_deferred) rqstp 802 net/sunrpc/svc_xprt.c len = svc_deferred_recv(rqstp); rqstp 804 net/sunrpc/svc_xprt.c len = xprt->xpt_ops->xpo_recvfrom(rqstp); rqstp 805 net/sunrpc/svc_xprt.c rqstp->rq_stime = ktime_get(); rqstp 806 net/sunrpc/svc_xprt.c rqstp->rq_reserved = serv->sv_max_mesg; rqstp 807 net/sunrpc/svc_xprt.c atomic_add(rqstp->rq_reserved, &xprt->xpt_reserved); rqstp 821 net/sunrpc/svc_xprt.c int svc_recv(struct svc_rqst *rqstp, long timeout) rqstp 824 net/sunrpc/svc_xprt.c struct svc_serv *serv = rqstp->rq_server; rqstp 828 net/sunrpc/svc_xprt.c rqstp, timeout); rqstp 830 net/sunrpc/svc_xprt.c if (rqstp->rq_xprt) rqstp 833 net/sunrpc/svc_xprt.c rqstp); rqstp 835 net/sunrpc/svc_xprt.c err = svc_alloc_arg(rqstp); rqstp 845 net/sunrpc/svc_xprt.c xprt = svc_get_next_xprt(rqstp, timeout); rqstp 851 net/sunrpc/svc_xprt.c len = svc_handle_xprt(rqstp, xprt); rqstp 860 net/sunrpc/svc_xprt.c xprt->xpt_ops->xpo_secure_port(rqstp); rqstp 861 net/sunrpc/svc_xprt.c rqstp->rq_chandle.defer = svc_defer; rqstp 862 net/sunrpc/svc_xprt.c rqstp->rq_xid = svc_getu32(&rqstp->rq_arg.head[0]); rqstp 866 net/sunrpc/svc_xprt.c trace_svc_recv(rqstp, len); rqstp 869 net/sunrpc/svc_xprt.c rqstp->rq_res.len = 0; rqstp 870 net/sunrpc/svc_xprt.c svc_xprt_release(rqstp); rqstp 879 net/sunrpc/svc_xprt.c void svc_drop(struct svc_rqst *rqstp) rqstp 881 net/sunrpc/svc_xprt.c trace_svc_drop(rqstp); rqstp 882 net/sunrpc/svc_xprt.c dprintk("svc: xprt %p dropped request\n", rqstp->rq_xprt); rqstp 883 net/sunrpc/svc_xprt.c svc_xprt_release(rqstp); rqstp 890 net/sunrpc/svc_xprt.c int svc_send(struct svc_rqst *rqstp) rqstp 896 net/sunrpc/svc_xprt.c xprt = rqstp->rq_xprt; rqstp 901 net/sunrpc/svc_xprt.c xb = &rqstp->rq_res; rqstp 908 net/sunrpc/svc_xprt.c trace_svc_stats_latency(rqstp); rqstp 913 net/sunrpc/svc_xprt.c len = xprt->xpt_ops->xpo_sendto(rqstp); rqstp 915 net/sunrpc/svc_xprt.c trace_svc_send(rqstp, len); rqstp 916 net/sunrpc/svc_xprt.c svc_xprt_release(rqstp); rqstp 1174 net/sunrpc/svc_xprt.c struct svc_rqst *rqstp = container_of(req, struct svc_rqst, rq_chandle); rqstp 1177 net/sunrpc/svc_xprt.c if (rqstp->rq_arg.page_len || !test_bit(RQ_USEDEFERRAL, &rqstp->rq_flags)) rqstp 1179 net/sunrpc/svc_xprt.c if (rqstp->rq_deferred) { rqstp 1180 net/sunrpc/svc_xprt.c dr = rqstp->rq_deferred; rqstp 1181 net/sunrpc/svc_xprt.c rqstp->rq_deferred = NULL; rqstp 1186 net/sunrpc/svc_xprt.c size = sizeof(struct svc_deferred_req) + rqstp->rq_arg.len; rqstp 1191 net/sunrpc/svc_xprt.c dr->handle.owner = rqstp->rq_server; rqstp 1192 net/sunrpc/svc_xprt.c dr->prot = rqstp->rq_prot; rqstp 1193 net/sunrpc/svc_xprt.c memcpy(&dr->addr, &rqstp->rq_addr, rqstp->rq_addrlen); rqstp 1194 net/sunrpc/svc_xprt.c dr->addrlen = rqstp->rq_addrlen; rqstp 1195 net/sunrpc/svc_xprt.c dr->daddr = rqstp->rq_daddr; rqstp 1196 net/sunrpc/svc_xprt.c dr->argslen = rqstp->rq_arg.len >> 2; rqstp 1197 net/sunrpc/svc_xprt.c dr->xprt_hlen = rqstp->rq_xprt_hlen; rqstp 1200 net/sunrpc/svc_xprt.c skip = rqstp->rq_arg.len - rqstp->rq_arg.head[0].iov_len; rqstp 1201 net/sunrpc/svc_xprt.c memcpy(dr->args, rqstp->rq_arg.head[0].iov_base - skip, rqstp 1204 net/sunrpc/svc_xprt.c svc_xprt_get(rqstp->rq_xprt); rqstp 1205 net/sunrpc/svc_xprt.c dr->xprt = rqstp->rq_xprt; rqstp 1206 net/sunrpc/svc_xprt.c set_bit(RQ_DROPME, &rqstp->rq_flags); rqstp 1209 net/sunrpc/svc_xprt.c trace_svc_defer(rqstp); rqstp 1216 net/sunrpc/svc_xprt.c static int svc_deferred_recv(struct svc_rqst *rqstp) rqstp 1218 net/sunrpc/svc_xprt.c struct svc_deferred_req *dr = rqstp->rq_deferred; rqstp 1221 net/sunrpc/svc_xprt.c rqstp->rq_arg.head[0].iov_base = dr->args + (dr->xprt_hlen>>2); rqstp 1223 net/sunrpc/svc_xprt.c rqstp->rq_arg.head[0].iov_len = (dr->argslen<<2) - dr->xprt_hlen; rqstp 1224 net/sunrpc/svc_xprt.c rqstp->rq_arg.page_len = 0; rqstp 1226 net/sunrpc/svc_xprt.c rqstp->rq_arg.len = dr->argslen<<2; rqstp 1227 net/sunrpc/svc_xprt.c rqstp->rq_prot = dr->prot; rqstp 1228 net/sunrpc/svc_xprt.c memcpy(&rqstp->rq_addr, &dr->addr, dr->addrlen); rqstp 1229 net/sunrpc/svc_xprt.c rqstp->rq_addrlen = dr->addrlen; rqstp 1231 net/sunrpc/svc_xprt.c rqstp->rq_xprt_hlen = dr->xprt_hlen; rqstp 1232 net/sunrpc/svc_xprt.c rqstp->rq_daddr = dr->daddr; rqstp 1233 net/sunrpc/svc_xprt.c rqstp->rq_respages = rqstp->rq_pages; rqstp 58 net/sunrpc/svcauth.c svc_authenticate(struct svc_rqst *rqstp, __be32 *authp) rqstp 65 net/sunrpc/svcauth.c flavor = svc_getnl(&rqstp->rq_arg.head[0]); rqstp 75 net/sunrpc/svcauth.c rqstp->rq_auth_slack = 0; rqstp 76 net/sunrpc/svcauth.c init_svc_cred(&rqstp->rq_cred); rqstp 78 net/sunrpc/svcauth.c rqstp->rq_authop = aops; rqstp 79 net/sunrpc/svcauth.c return aops->accept(rqstp, authp); rqstp 83 net/sunrpc/svcauth.c int svc_set_client(struct svc_rqst *rqstp) rqstp 85 net/sunrpc/svcauth.c rqstp->rq_client = NULL; rqstp 86 net/sunrpc/svcauth.c return rqstp->rq_authop->set_client(rqstp); rqstp 94 net/sunrpc/svcauth.c int svc_authorise(struct svc_rqst *rqstp) rqstp 96 net/sunrpc/svcauth.c struct auth_ops *aops = rqstp->rq_authop; rqstp 99 net/sunrpc/svcauth.c rqstp->rq_authop = NULL; rqstp 102 net/sunrpc/svcauth.c rv = aops->release(rqstp); rqstp 638 net/sunrpc/svcauth_unix.c static struct group_info *unix_gid_find(kuid_t uid, struct svc_rqst *rqstp) rqstp 643 net/sunrpc/svcauth_unix.c struct sunrpc_net *sn = net_generic(rqstp->rq_xprt->xpt_net, rqstp 649 net/sunrpc/svcauth_unix.c ret = cache_check(sn->unix_gid_cache, &ug->h, &rqstp->rq_chandle); rqstp 665 net/sunrpc/svcauth_unix.c svcauth_unix_set_client(struct svc_rqst *rqstp) rqstp 671 net/sunrpc/svcauth_unix.c struct svc_cred *cred = &rqstp->rq_cred; rqstp 672 net/sunrpc/svcauth_unix.c struct svc_xprt *xprt = rqstp->rq_xprt; rqstp 676 net/sunrpc/svcauth_unix.c switch (rqstp->rq_addr.ss_family) { rqstp 678 net/sunrpc/svcauth_unix.c sin = svc_addr_in(rqstp); rqstp 683 net/sunrpc/svcauth_unix.c sin6 = svc_addr_in6(rqstp); rqstp 689 net/sunrpc/svcauth_unix.c rqstp->rq_client = NULL; rqstp 690 net/sunrpc/svcauth_unix.c if (rqstp->rq_proc == 0) rqstp 695 net/sunrpc/svcauth_unix.c ipm = __ip_map_lookup(sn->ip_map_cache, rqstp->rq_server->sv_program->pg_class, rqstp 701 net/sunrpc/svcauth_unix.c switch (cache_check(sn->ip_map_cache, &ipm->h, &rqstp->rq_chandle)) { rqstp 711 net/sunrpc/svcauth_unix.c rqstp->rq_client = &ipm->m_client->h; rqstp 712 net/sunrpc/svcauth_unix.c kref_get(&rqstp->rq_client->ref); rqstp 717 net/sunrpc/svcauth_unix.c gi = unix_gid_find(cred->cr_uid, rqstp); rqstp 735 net/sunrpc/svcauth_unix.c svcauth_null_accept(struct svc_rqst *rqstp, __be32 *authp) rqstp 737 net/sunrpc/svcauth_unix.c struct kvec *argv = &rqstp->rq_arg.head[0]; rqstp 738 net/sunrpc/svcauth_unix.c struct kvec *resv = &rqstp->rq_res.head[0]; rqstp 739 net/sunrpc/svcauth_unix.c struct svc_cred *cred = &rqstp->rq_cred; rqstp 766 net/sunrpc/svcauth_unix.c rqstp->rq_cred.cr_flavor = RPC_AUTH_NULL; rqstp 771 net/sunrpc/svcauth_unix.c svcauth_null_release(struct svc_rqst *rqstp) rqstp 773 net/sunrpc/svcauth_unix.c if (rqstp->rq_client) rqstp 774 net/sunrpc/svcauth_unix.c auth_domain_put(rqstp->rq_client); rqstp 775 net/sunrpc/svcauth_unix.c rqstp->rq_client = NULL; rqstp 776 net/sunrpc/svcauth_unix.c if (rqstp->rq_cred.cr_group_info) rqstp 777 net/sunrpc/svcauth_unix.c put_group_info(rqstp->rq_cred.cr_group_info); rqstp 778 net/sunrpc/svcauth_unix.c rqstp->rq_cred.cr_group_info = NULL; rqstp 795 net/sunrpc/svcauth_unix.c svcauth_unix_accept(struct svc_rqst *rqstp, __be32 *authp) rqstp 797 net/sunrpc/svcauth_unix.c struct kvec *argv = &rqstp->rq_arg.head[0]; rqstp 798 net/sunrpc/svcauth_unix.c struct kvec *resv = &rqstp->rq_res.head[0]; rqstp 799 net/sunrpc/svcauth_unix.c struct svc_cred *cred = &rqstp->rq_cred; rqstp 821 net/sunrpc/svcauth_unix.c userns = (rqstp->rq_xprt && rqstp->rq_xprt->xpt_cred) ? rqstp 822 net/sunrpc/svcauth_unix.c rqstp->rq_xprt->xpt_cred->user_ns : &init_user_ns; rqstp 845 net/sunrpc/svcauth_unix.c rqstp->rq_cred.cr_flavor = RPC_AUTH_UNIX; rqstp 854 net/sunrpc/svcauth_unix.c svcauth_unix_release(struct svc_rqst *rqstp) rqstp 858 net/sunrpc/svcauth_unix.c if (rqstp->rq_client) rqstp 859 net/sunrpc/svcauth_unix.c auth_domain_put(rqstp->rq_client); rqstp 860 net/sunrpc/svcauth_unix.c rqstp->rq_client = NULL; rqstp 861 net/sunrpc/svcauth_unix.c if (rqstp->rq_cred.cr_group_info) rqstp 862 net/sunrpc/svcauth_unix.c put_group_info(rqstp->rq_cred.cr_group_info); rqstp 863 net/sunrpc/svcauth_unix.c rqstp->rq_cred.cr_group_info = NULL; rqstp 113 net/sunrpc/svcsock.c static void svc_release_skb(struct svc_rqst *rqstp) rqstp 115 net/sunrpc/svcsock.c struct sk_buff *skb = rqstp->rq_xprt_ctxt; rqstp 119 net/sunrpc/svcsock.c container_of(rqstp->rq_xprt, struct svc_sock, sk_xprt); rqstp 120 net/sunrpc/svcsock.c rqstp->rq_xprt_ctxt = NULL; rqstp 122 net/sunrpc/svcsock.c dprintk("svc: service %p, releasing skb %p\n", rqstp, skb); rqstp 127 net/sunrpc/svcsock.c static void svc_release_udp_skb(struct svc_rqst *rqstp) rqstp 129 net/sunrpc/svcsock.c struct sk_buff *skb = rqstp->rq_xprt_ctxt; rqstp 132 net/sunrpc/svcsock.c rqstp->rq_xprt_ctxt = NULL; rqstp 134 net/sunrpc/svcsock.c dprintk("svc: service %p, releasing skb %p\n", rqstp, skb); rqstp 146 net/sunrpc/svcsock.c static void svc_set_cmsg_data(struct svc_rqst *rqstp, struct cmsghdr *cmh) rqstp 149 net/sunrpc/svcsock.c container_of(rqstp->rq_xprt, struct svc_sock, sk_xprt); rqstp 158 net/sunrpc/svcsock.c svc_daddr_in(rqstp)->sin_addr.s_addr; rqstp 165 net/sunrpc/svcsock.c struct sockaddr_in6 *daddr = svc_daddr_in6(rqstp); rqstp 239 net/sunrpc/svcsock.c static int svc_sendto(struct svc_rqst *rqstp, struct xdr_buf *xdr) rqstp 242 net/sunrpc/svcsock.c container_of(rqstp->rq_xprt, struct svc_sock, sk_xprt); rqstp 254 net/sunrpc/svcsock.c if (rqstp->rq_prot == IPPROTO_UDP) { rqstp 256 net/sunrpc/svcsock.c .msg_name = &rqstp->rq_addr, rqstp 257 net/sunrpc/svcsock.c .msg_namelen = rqstp->rq_addrlen, rqstp 263 net/sunrpc/svcsock.c svc_set_cmsg_data(rqstp, cmh); rqstp 271 net/sunrpc/svcsock.c len = svc_send_common(sock, xdr, rqstp->rq_respages[0], headoff, rqstp 272 net/sunrpc/svcsock.c rqstp->rq_respages[0], tailoff); rqstp 277 net/sunrpc/svcsock.c xdr->len, len, svc_print_addr(rqstp, buf, sizeof(buf))); rqstp 322 net/sunrpc/svcsock.c static ssize_t svc_recvfrom(struct svc_rqst *rqstp, struct kvec *iov, rqstp 326 net/sunrpc/svcsock.c container_of(rqstp->rq_xprt, struct svc_sock, sk_xprt); rqstp 330 net/sunrpc/svcsock.c rqstp->rq_xprt_hlen = 0; rqstp 367 net/sunrpc/svcsock.c static void svc_sock_secure_port(struct svc_rqst *rqstp) rqstp 369 net/sunrpc/svcsock.c if (svc_port_is_privileged(svc_addr(rqstp))) rqstp 370 net/sunrpc/svcsock.c set_bit(RQ_SECURE, &rqstp->rq_flags); rqstp 372 net/sunrpc/svcsock.c clear_bit(RQ_SECURE, &rqstp->rq_flags); rqstp 440 net/sunrpc/svcsock.c static int svc_udp_get_dest_address4(struct svc_rqst *rqstp, rqstp 444 net/sunrpc/svcsock.c struct sockaddr_in *daddr = svc_daddr_in(rqstp); rqstp 457 net/sunrpc/svcsock.c static int svc_udp_get_dest_address6(struct svc_rqst *rqstp, rqstp 461 net/sunrpc/svcsock.c struct sockaddr_in6 *daddr = svc_daddr_in6(rqstp); rqstp 479 net/sunrpc/svcsock.c static int svc_udp_get_dest_address(struct svc_rqst *rqstp, rqstp 484 net/sunrpc/svcsock.c return svc_udp_get_dest_address4(rqstp, cmh); rqstp 486 net/sunrpc/svcsock.c return svc_udp_get_dest_address6(rqstp, cmh); rqstp 495 net/sunrpc/svcsock.c static int svc_udp_recvfrom(struct svc_rqst *rqstp) rqstp 498 net/sunrpc/svcsock.c container_of(rqstp->rq_xprt, struct svc_sock, sk_xprt); rqstp 507 net/sunrpc/svcsock.c .msg_name = svc_addr(rqstp), rqstp 541 net/sunrpc/svcsock.c len = svc_addr_len(svc_addr(rqstp)); rqstp 542 net/sunrpc/svcsock.c rqstp->rq_addrlen = len; rqstp 552 net/sunrpc/svcsock.c rqstp->rq_arg.len = len; rqstp 554 net/sunrpc/svcsock.c rqstp->rq_prot = IPPROTO_UDP; rqstp 556 net/sunrpc/svcsock.c if (!svc_udp_get_dest_address(rqstp, cmh)) { rqstp 561 net/sunrpc/svcsock.c rqstp->rq_daddrlen = svc_addr_len(svc_daddr(rqstp)); rqstp 566 net/sunrpc/svcsock.c if (csum_partial_copy_to_xdr(&rqstp->rq_arg, skb)) { rqstp 575 net/sunrpc/svcsock.c rqstp->rq_arg.head[0].iov_base = skb->data; rqstp 576 net/sunrpc/svcsock.c rqstp->rq_arg.head[0].iov_len = len; rqstp 579 net/sunrpc/svcsock.c rqstp->rq_xprt_ctxt = skb; rqstp 582 net/sunrpc/svcsock.c rqstp->rq_arg.page_base = 0; rqstp 583 net/sunrpc/svcsock.c if (len <= rqstp->rq_arg.head[0].iov_len) { rqstp 584 net/sunrpc/svcsock.c rqstp->rq_arg.head[0].iov_len = len; rqstp 585 net/sunrpc/svcsock.c rqstp->rq_arg.page_len = 0; rqstp 586 net/sunrpc/svcsock.c rqstp->rq_respages = rqstp->rq_pages+1; rqstp 588 net/sunrpc/svcsock.c rqstp->rq_arg.page_len = len - rqstp->rq_arg.head[0].iov_len; rqstp 589 net/sunrpc/svcsock.c rqstp->rq_respages = rqstp->rq_pages + 1 + rqstp 590 net/sunrpc/svcsock.c DIV_ROUND_UP(rqstp->rq_arg.page_len, PAGE_SIZE); rqstp 592 net/sunrpc/svcsock.c rqstp->rq_next_page = rqstp->rq_respages+1; rqstp 604 net/sunrpc/svcsock.c svc_udp_sendto(struct svc_rqst *rqstp) rqstp 608 net/sunrpc/svcsock.c svc_release_udp_skb(rqstp); rqstp 610 net/sunrpc/svcsock.c error = svc_sendto(rqstp, &rqstp->rq_res); rqstp 613 net/sunrpc/svcsock.c error = svc_sendto(rqstp, &rqstp->rq_res); rqstp 861 net/sunrpc/svcsock.c static unsigned int svc_tcp_restore_pages(struct svc_sock *svsk, struct svc_rqst *rqstp) rqstp 870 net/sunrpc/svcsock.c if (rqstp->rq_pages[i] != NULL) rqstp 871 net/sunrpc/svcsock.c put_page(rqstp->rq_pages[i]); rqstp 873 net/sunrpc/svcsock.c rqstp->rq_pages[i] = svsk->sk_pages[i]; rqstp 876 net/sunrpc/svcsock.c rqstp->rq_arg.head[0].iov_base = page_address(rqstp->rq_pages[0]); rqstp 880 net/sunrpc/svcsock.c static void svc_tcp_save_pages(struct svc_sock *svsk, struct svc_rqst *rqstp) rqstp 889 net/sunrpc/svcsock.c svsk->sk_pages[i] = rqstp->rq_pages[i]; rqstp 890 net/sunrpc/svcsock.c rqstp->rq_pages[i] = NULL; rqstp 919 net/sunrpc/svcsock.c static int svc_tcp_recv_record(struct svc_sock *svsk, struct svc_rqst *rqstp) rqstp 931 net/sunrpc/svcsock.c len = svc_recvfrom(rqstp, &iov, 1, want, 0); rqstp 960 net/sunrpc/svcsock.c static int receive_cb_reply(struct svc_sock *svsk, struct svc_rqst *rqstp) rqstp 965 net/sunrpc/svcsock.c __be32 *p = (__be32 *)rqstp->rq_arg.head[0].iov_base; rqstp 986 net/sunrpc/svcsock.c src = &rqstp->rq_arg.head[0]; rqstp 990 net/sunrpc/svcsock.c xprt_complete_rqst(req->rq_task, rqstp->rq_arg.len); rqstp 991 net/sunrpc/svcsock.c rqstp->rq_arg.len = 0; rqstp 1032 net/sunrpc/svcsock.c static int svc_tcp_recvfrom(struct svc_rqst *rqstp) rqstp 1035 net/sunrpc/svcsock.c container_of(rqstp->rq_xprt, struct svc_sock, sk_xprt); rqstp 1049 net/sunrpc/svcsock.c len = svc_tcp_recv_record(svsk, rqstp); rqstp 1053 net/sunrpc/svcsock.c base = svc_tcp_restore_pages(svsk, rqstp); rqstp 1056 net/sunrpc/svcsock.c vec = rqstp->rq_vec; rqstp 1058 net/sunrpc/svcsock.c pnum = copy_pages_to_kvecs(&vec[0], &rqstp->rq_pages[0], base + want); rqstp 1060 net/sunrpc/svcsock.c rqstp->rq_respages = &rqstp->rq_pages[pnum]; rqstp 1061 net/sunrpc/svcsock.c rqstp->rq_next_page = rqstp->rq_respages + 1; rqstp 1064 net/sunrpc/svcsock.c len = svc_recvfrom(rqstp, vec, pnum, base + want, base); rqstp 1070 net/sunrpc/svcsock.c svc_tcp_save_pages(svsk, rqstp); rqstp 1087 net/sunrpc/svcsock.c rqstp->rq_arg.len = svsk->sk_datalen; rqstp 1088 net/sunrpc/svcsock.c rqstp->rq_arg.page_base = 0; rqstp 1089 net/sunrpc/svcsock.c if (rqstp->rq_arg.len <= rqstp->rq_arg.head[0].iov_len) { rqstp 1090 net/sunrpc/svcsock.c rqstp->rq_arg.head[0].iov_len = rqstp->rq_arg.len; rqstp 1091 net/sunrpc/svcsock.c rqstp->rq_arg.page_len = 0; rqstp 1093 net/sunrpc/svcsock.c rqstp->rq_arg.page_len = rqstp->rq_arg.len - rqstp->rq_arg.head[0].iov_len; rqstp 1095 net/sunrpc/svcsock.c rqstp->rq_xprt_ctxt = NULL; rqstp 1096 net/sunrpc/svcsock.c rqstp->rq_prot = IPPROTO_TCP; rqstp 1098 net/sunrpc/svcsock.c set_bit(RQ_LOCAL, &rqstp->rq_flags); rqstp 1100 net/sunrpc/svcsock.c clear_bit(RQ_LOCAL, &rqstp->rq_flags); rqstp 1102 net/sunrpc/svcsock.c p = (__be32 *)rqstp->rq_arg.head[0].iov_base; rqstp 1105 net/sunrpc/svcsock.c len = receive_cb_reply(svsk, rqstp); rqstp 1114 net/sunrpc/svcsock.c svc_xprt_copy_addrs(rqstp, &svsk->sk_xprt); rqstp 1118 net/sunrpc/svcsock.c return rqstp->rq_arg.len; rqstp 1136 net/sunrpc/svcsock.c static int svc_tcp_sendto(struct svc_rqst *rqstp) rqstp 1138 net/sunrpc/svcsock.c struct xdr_buf *xbufp = &rqstp->rq_res; rqstp 1142 net/sunrpc/svcsock.c svc_release_skb(rqstp); rqstp 1151 net/sunrpc/svcsock.c sent = svc_sendto(rqstp, &rqstp->rq_res); rqstp 1156 net/sunrpc/svcsock.c rqstp->rq_xprt->xpt_server->sv_name, rqstp 1159 net/sunrpc/svcsock.c set_bit(XPT_CLOSE, &rqstp->rq_xprt->xpt_flags); rqstp 1160 net/sunrpc/svcsock.c svc_xprt_enqueue(rqstp->rq_xprt); rqstp 233 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c void svc_rdma_release_rqst(struct svc_rqst *rqstp) rqstp 235 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c struct svc_rdma_recv_ctxt *ctxt = rqstp->rq_xprt_ctxt; rqstp 236 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c struct svc_xprt *xprt = rqstp->rq_xprt; rqstp 240 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c rqstp->rq_xprt_ctxt = NULL; rqstp 365 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c static void svc_rdma_build_arg_xdr(struct svc_rqst *rqstp, rqstp 368 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c struct xdr_buf *arg = &rqstp->rq_arg; rqstp 640 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c static void rdma_read_complete(struct svc_rqst *rqstp, rqstp 649 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c put_page(rqstp->rq_pages[page_no]); rqstp 650 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c rqstp->rq_pages[page_no] = head->rc_pages[page_no]; rqstp 655 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c rqstp->rq_arg.pages = &rqstp->rq_pages[head->rc_hdr_count]; rqstp 656 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c rqstp->rq_arg.page_len = head->rc_arg.page_len; rqstp 659 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c rqstp->rq_respages = &rqstp->rq_pages[page_no]; rqstp 660 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c rqstp->rq_next_page = rqstp->rq_respages + 1; rqstp 663 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c rqstp->rq_arg.head[0] = head->rc_arg.head[0]; rqstp 664 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c rqstp->rq_arg.tail[0] = head->rc_arg.tail[0]; rqstp 665 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c rqstp->rq_arg.len = head->rc_arg.len; rqstp 666 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c rqstp->rq_arg.buflen = head->rc_arg.buflen; rqstp 770 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c int svc_rdma_recvfrom(struct svc_rqst *rqstp) rqstp 772 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c struct svc_xprt *xprt = rqstp->rq_xprt; rqstp 779 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c rqstp->rq_xprt_ctxt = NULL; rqstp 786 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c rdma_read_complete(rqstp, ctxt); rqstp 801 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c svc_rdma_build_arg_xdr(rqstp, ctxt); rqstp 806 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c rqstp->rq_respages = rqstp->rq_pages; rqstp 807 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c rqstp->rq_next_page = rqstp->rq_respages; rqstp 809 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c p = (__be32 *)rqstp->rq_arg.head[0].iov_base; rqstp 810 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c ret = svc_rdma_xdr_decode_req(&rqstp->rq_arg); rqstp 815 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c rqstp->rq_xprt_hlen = ret; rqstp 819 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c &rqstp->rq_arg); rqstp 830 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c rqstp->rq_xprt_ctxt = ctxt; rqstp 831 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c rqstp->rq_prot = IPPROTO_MAX; rqstp 832 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c svc_xprt_copy_addrs(rqstp, xprt); rqstp 833 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c return rqstp->rq_arg.len; rqstp 836 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c ret = svc_rdma_recv_read_chunk(rdma_xprt, rqstp, ctxt, p); rqstp 599 net/sunrpc/xprtrdma/svc_rdma_rw.c struct svc_rqst *rqstp, rqstp 621 net/sunrpc/xprtrdma/svc_rdma_rw.c rqstp->rq_pages[info->ri_pageno]; rqstp 625 net/sunrpc/xprtrdma/svc_rdma_rw.c sg_set_page(sg, rqstp->rq_pages[info->ri_pageno], rqstp 638 net/sunrpc/xprtrdma/svc_rdma_rw.c &rqstp->rq_pages[info->ri_pageno + 1] > rqstp->rq_page_end) rqstp 670 net/sunrpc/xprtrdma/svc_rdma_rw.c static int svc_rdma_build_read_chunk(struct svc_rqst *rqstp, rqstp 687 net/sunrpc/xprtrdma/svc_rdma_rw.c ret = svc_rdma_build_read_segment(info, rqstp, rqstp 701 net/sunrpc/xprtrdma/svc_rdma_rw.c rqstp->rq_pages[i] = NULL; rqstp 713 net/sunrpc/xprtrdma/svc_rdma_rw.c static int svc_rdma_build_normal_read_chunk(struct svc_rqst *rqstp, rqstp 720 net/sunrpc/xprtrdma/svc_rdma_rw.c ret = svc_rdma_build_read_chunk(rqstp, info, p); rqstp 769 net/sunrpc/xprtrdma/svc_rdma_rw.c static int svc_rdma_build_pz_read_chunk(struct svc_rqst *rqstp, rqstp 776 net/sunrpc/xprtrdma/svc_rdma_rw.c ret = svc_rdma_build_read_chunk(rqstp, info, p); rqstp 814 net/sunrpc/xprtrdma/svc_rdma_rw.c int svc_rdma_recv_read_chunk(struct svcxprt_rdma *rdma, struct svc_rqst *rqstp, rqstp 824 net/sunrpc/xprtrdma/svc_rdma_rw.c head->rc_arg.head[0] = rqstp->rq_arg.head[0]; rqstp 825 net/sunrpc/xprtrdma/svc_rdma_rw.c head->rc_arg.tail[0] = rqstp->rq_arg.tail[0]; rqstp 829 net/sunrpc/xprtrdma/svc_rdma_rw.c head->rc_arg.len = rqstp->rq_arg.len; rqstp 830 net/sunrpc/xprtrdma/svc_rdma_rw.c head->rc_arg.buflen = rqstp->rq_arg.buflen; rqstp 841 net/sunrpc/xprtrdma/svc_rdma_rw.c ret = svc_rdma_build_normal_read_chunk(rqstp, info, p); rqstp 843 net/sunrpc/xprtrdma/svc_rdma_rw.c ret = svc_rdma_build_pz_read_chunk(rqstp, info, p); rqstp 714 net/sunrpc/xprtrdma/svc_rdma_sendto.c static void svc_rdma_save_io_pages(struct svc_rqst *rqstp, rqstp 717 net/sunrpc/xprtrdma/svc_rdma_sendto.c int i, pages = rqstp->rq_next_page - rqstp->rq_respages; rqstp 721 net/sunrpc/xprtrdma/svc_rdma_sendto.c ctxt->sc_pages[i] = rqstp->rq_respages[i]; rqstp 722 net/sunrpc/xprtrdma/svc_rdma_sendto.c rqstp->rq_respages[i] = NULL; rqstp 726 net/sunrpc/xprtrdma/svc_rdma_sendto.c rqstp->rq_next_page = rqstp->rq_respages; rqstp 750 net/sunrpc/xprtrdma/svc_rdma_sendto.c struct svc_rqst *rqstp, rqstp 757 net/sunrpc/xprtrdma/svc_rdma_sendto.c &rqstp->rq_res, wr_lst); rqstp 762 net/sunrpc/xprtrdma/svc_rdma_sendto.c svc_rdma_save_io_pages(rqstp, sctxt); rqstp 784 net/sunrpc/xprtrdma/svc_rdma_sendto.c struct svc_rqst *rqstp) rqstp 796 net/sunrpc/xprtrdma/svc_rdma_sendto.c svc_rdma_save_io_pages(rqstp, ctxt); rqstp 820 net/sunrpc/xprtrdma/svc_rdma_sendto.c int svc_rdma_sendto(struct svc_rqst *rqstp) rqstp 822 net/sunrpc/xprtrdma/svc_rdma_sendto.c struct svc_xprt *xprt = rqstp->rq_xprt; rqstp 825 net/sunrpc/xprtrdma/svc_rdma_sendto.c struct svc_rdma_recv_ctxt *rctxt = rqstp->rq_xprt_ctxt; rqstp 827 net/sunrpc/xprtrdma/svc_rdma_sendto.c struct xdr_buf *xdr = &rqstp->rq_res; rqstp 872 net/sunrpc/xprtrdma/svc_rdma_sendto.c ret = svc_rdma_send_reply_msg(rdma, sctxt, rctxt, rqstp, rqstp 882 net/sunrpc/xprtrdma/svc_rdma_sendto.c ret = svc_rdma_send_error_msg(rdma, sctxt, rqstp); rqstp 890 net/sunrpc/xprtrdma/svc_rdma_sendto.c trace_svcrdma_send_failed(rqstp, ret); rqstp 648 net/sunrpc/xprtrdma/svc_rdma_transport.c static void svc_rdma_secure_port(struct svc_rqst *rqstp) rqstp 650 net/sunrpc/xprtrdma/svc_rdma_transport.c set_bit(RQ_SECURE, &rqstp->rq_flags);