Lines Matching refs:rqstp
58 nfsd3_proc_null(struct svc_rqst *rqstp) in nfsd3_proc_null() argument
67 nfsd3_proc_getattr(struct svc_rqst *rqstp) in nfsd3_proc_getattr() argument
69 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd3_proc_getattr()
70 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_getattr()
76 resp->status = fh_verify(rqstp, &resp->fh, 0, in nfsd3_proc_getattr()
91 nfsd3_proc_setattr(struct svc_rqst *rqstp) in nfsd3_proc_setattr() argument
93 struct nfsd3_sattrargs *argp = rqstp->rq_argp; in nfsd3_proc_setattr()
94 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_setattr()
106 resp->status = nfsd_setattr(rqstp, &resp->fh, &attrs, guardtime); in nfsd3_proc_setattr()
115 nfsd3_proc_lookup(struct svc_rqst *rqstp) in nfsd3_proc_lookup() argument
117 struct nfsd3_diropargs *argp = rqstp->rq_argp; in nfsd3_proc_lookup()
118 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfsd3_proc_lookup()
128 resp->status = nfsd_lookup(rqstp, &resp->dirfh, in nfsd3_proc_lookup()
139 nfsd3_proc_access(struct svc_rqst *rqstp) in nfsd3_proc_access() argument
141 struct nfsd3_accessargs *argp = rqstp->rq_argp; in nfsd3_proc_access()
142 struct nfsd3_accessres *resp = rqstp->rq_resp; in nfsd3_proc_access()
150 resp->status = nfsd_access(rqstp, &resp->fh, &resp->access, NULL); in nfsd3_proc_access()
159 nfsd3_proc_readlink(struct svc_rqst *rqstp) in nfsd3_proc_readlink() argument
161 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd3_proc_readlink()
162 struct nfsd3_readlinkres *resp = rqstp->rq_resp; in nfsd3_proc_readlink()
169 resp->pages = rqstp->rq_next_page++; in nfsd3_proc_readlink()
170 resp->status = nfsd_readlink(rqstp, &resp->fh, in nfsd3_proc_readlink()
180 nfsd3_proc_read(struct svc_rqst *rqstp) in nfsd3_proc_read() argument
182 struct nfsd3_readargs *argp = rqstp->rq_argp; in nfsd3_proc_read()
183 struct nfsd3_readres *resp = rqstp->rq_resp; in nfsd3_proc_read()
190 argp->count = min_t(u32, argp->count, svc_max_payload(rqstp)); in nfsd3_proc_read()
191 argp->count = min_t(u32, argp->count, rqstp->rq_res.buflen); in nfsd3_proc_read()
197 resp->pages = rqstp->rq_next_page; in nfsd3_proc_read()
204 svc_reserve_auth(rqstp, ((1 + NFS3_POST_OP_ATTR_WORDS + 3) << 2) + in nfsd3_proc_read()
208 resp->status = nfsd_read(rqstp, &resp->fh, argp->offset, in nfsd3_proc_read()
218 nfsd3_proc_write(struct svc_rqst *rqstp) in nfsd3_proc_write() argument
220 struct nfsd3_writeargs *argp = rqstp->rq_argp; in nfsd3_proc_write()
221 struct nfsd3_writeres *resp = rqstp->rq_resp; in nfsd3_proc_write()
238 nvecs = svc_fill_write_vector(rqstp, &argp->payload); in nfsd3_proc_write()
240 resp->status = nfsd_write(rqstp, &resp->fh, argp->offset, in nfsd3_proc_write()
241 rqstp->rq_vec, nvecs, &cnt, in nfsd3_proc_write()
256 nfsd3_create_file(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd3_create_file() argument
274 status = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_EXEC); in nfsd3_create_file()
294 status = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_CREATE); in nfsd3_create_file()
366 status = nfsd_create_setattr(rqstp, fhp, resfhp, &attrs); in nfsd3_create_file()
377 nfsd3_proc_create(struct svc_rqst *rqstp) in nfsd3_proc_create() argument
379 struct nfsd3_createargs *argp = rqstp->rq_argp; in nfsd3_proc_create()
380 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfsd3_proc_create()
391 resp->status = nfsd3_create_file(rqstp, dirfhp, newfhp, argp); in nfsd3_proc_create()
400 nfsd3_proc_mkdir(struct svc_rqst *rqstp) in nfsd3_proc_mkdir() argument
402 struct nfsd3_createargs *argp = rqstp->rq_argp; in nfsd3_proc_mkdir()
403 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfsd3_proc_mkdir()
416 resp->status = nfsd_create(rqstp, &resp->dirfh, argp->name, argp->len, in nfsd3_proc_mkdir()
423 nfsd3_proc_symlink(struct svc_rqst *rqstp) in nfsd3_proc_symlink() argument
425 struct nfsd3_symlinkargs *argp = rqstp->rq_argp; in nfsd3_proc_symlink()
426 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfsd3_proc_symlink()
440 argp->tname = svc_fill_symlink_pathname(rqstp, &argp->first, in nfsd3_proc_symlink()
441 page_address(rqstp->rq_arg.pages[0]), in nfsd3_proc_symlink()
455 resp->status = nfsd_symlink(rqstp, &resp->dirfh, argp->fname, in nfsd3_proc_symlink()
467 nfsd3_proc_mknod(struct svc_rqst *rqstp) in nfsd3_proc_mknod() argument
469 struct nfsd3_mknodargs *argp = rqstp->rq_argp; in nfsd3_proc_mknod()
470 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfsd3_proc_mknod()
498 resp->status = nfsd_create(rqstp, &resp->dirfh, argp->name, argp->len, in nfsd3_proc_mknod()
509 nfsd3_proc_remove(struct svc_rqst *rqstp) in nfsd3_proc_remove() argument
511 struct nfsd3_diropargs *argp = rqstp->rq_argp; in nfsd3_proc_remove()
512 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_remove()
521 resp->status = nfsd_unlink(rqstp, &resp->fh, -S_IFDIR, in nfsd3_proc_remove()
531 nfsd3_proc_rmdir(struct svc_rqst *rqstp) in nfsd3_proc_rmdir() argument
533 struct nfsd3_diropargs *argp = rqstp->rq_argp; in nfsd3_proc_rmdir()
534 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_rmdir()
542 resp->status = nfsd_unlink(rqstp, &resp->fh, S_IFDIR, in nfsd3_proc_rmdir()
549 nfsd3_proc_rename(struct svc_rqst *rqstp) in nfsd3_proc_rename() argument
551 struct nfsd3_renameargs *argp = rqstp->rq_argp; in nfsd3_proc_rename()
552 struct nfsd3_renameres *resp = rqstp->rq_resp; in nfsd3_proc_rename()
565 resp->status = nfsd_rename(rqstp, &resp->ffh, argp->fname, argp->flen, in nfsd3_proc_rename()
572 nfsd3_proc_link(struct svc_rqst *rqstp) in nfsd3_proc_link() argument
574 struct nfsd3_linkargs *argp = rqstp->rq_argp; in nfsd3_proc_link()
575 struct nfsd3_linkres *resp = rqstp->rq_resp; in nfsd3_proc_link()
586 resp->status = nfsd_link(rqstp, &resp->tfh, argp->tname, argp->tlen, in nfsd3_proc_link()
592 static void nfsd3_init_dirlist_pages(struct svc_rqst *rqstp, in nfsd3_init_dirlist_pages() argument
598 unsigned int sendbuf = min_t(unsigned int, rqstp->rq_res.buflen, in nfsd3_init_dirlist_pages()
599 svc_max_payload(rqstp)); in nfsd3_init_dirlist_pages()
606 buf->pages = rqstp->rq_next_page; in nfsd3_init_dirlist_pages()
607 rqstp->rq_next_page += (buf->buflen + PAGE_SIZE - 1) >> PAGE_SHIFT; in nfsd3_init_dirlist_pages()
616 nfsd3_proc_readdir(struct svc_rqst *rqstp) in nfsd3_proc_readdir() argument
618 struct nfsd3_readdirargs *argp = rqstp->rq_argp; in nfsd3_proc_readdir()
619 struct nfsd3_readdirres *resp = rqstp->rq_resp; in nfsd3_proc_readdir()
626 nfsd3_init_dirlist_pages(rqstp, resp, argp->count); in nfsd3_proc_readdir()
631 resp->rqstp = rqstp; in nfsd3_proc_readdir()
633 resp->status = nfsd_readdir(rqstp, &resp->fh, &offset, in nfsd3_proc_readdir()
639 rqstp->rq_next_page = resp->xdr.page_ptr + 1; in nfsd3_proc_readdir()
650 nfsd3_proc_readdirplus(struct svc_rqst *rqstp) in nfsd3_proc_readdirplus() argument
652 struct nfsd3_readdirargs *argp = rqstp->rq_argp; in nfsd3_proc_readdirplus()
653 struct nfsd3_readdirres *resp = rqstp->rq_resp; in nfsd3_proc_readdirplus()
660 nfsd3_init_dirlist_pages(rqstp, resp, argp->count); in nfsd3_proc_readdirplus()
665 resp->rqstp = rqstp; in nfsd3_proc_readdirplus()
668 resp->status = fh_verify(rqstp, &resp->fh, S_IFDIR, NFSD_MAY_NOP); in nfsd3_proc_readdirplus()
677 resp->status = nfsd_readdir(rqstp, &resp->fh, &offset, in nfsd3_proc_readdirplus()
683 rqstp->rq_next_page = resp->xdr.page_ptr + 1; in nfsd3_proc_readdirplus()
694 nfsd3_proc_fsstat(struct svc_rqst *rqstp) in nfsd3_proc_fsstat() argument
696 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd3_proc_fsstat()
697 struct nfsd3_fsstatres *resp = rqstp->rq_resp; in nfsd3_proc_fsstat()
702 resp->status = nfsd_statfs(rqstp, &argp->fh, &resp->stats, 0); in nfsd3_proc_fsstat()
712 nfsd3_proc_fsinfo(struct svc_rqst *rqstp) in nfsd3_proc_fsinfo() argument
714 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd3_proc_fsinfo()
715 struct nfsd3_fsinfores *resp = rqstp->rq_resp; in nfsd3_proc_fsinfo()
716 u32 max_blocksize = svc_max_payload(rqstp); in nfsd3_proc_fsinfo()
731 resp->status = fh_verify(rqstp, &argp->fh, 0, in nfsd3_proc_fsinfo()
756 nfsd3_proc_pathconf(struct svc_rqst *rqstp) in nfsd3_proc_pathconf() argument
758 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd3_proc_pathconf()
759 struct nfsd3_pathconfres *resp = rqstp->rq_resp; in nfsd3_proc_pathconf()
772 resp->status = fh_verify(rqstp, &argp->fh, 0, NFSD_MAY_NOP); in nfsd3_proc_pathconf()
799 nfsd3_proc_commit(struct svc_rqst *rqstp) in nfsd3_proc_commit() argument
801 struct nfsd3_commitargs *argp = rqstp->rq_argp; in nfsd3_proc_commit()
802 struct nfsd3_commitres *resp = rqstp->rq_resp; in nfsd3_proc_commit()
811 resp->status = nfsd_file_acquire_gc(rqstp, &resp->fh, NFSD_MAY_WRITE | in nfsd3_proc_commit()
815 resp->status = nfsd_commit(rqstp, &resp->fh, nf, argp->offset, in nfsd3_proc_commit()