Lines Matching refs:rqstp
33 nfsd3_proc_null(struct svc_rqst *rqstp) in nfsd3_proc_null() argument
42 nfsd3_proc_getattr(struct svc_rqst *rqstp) in nfsd3_proc_getattr() argument
44 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd3_proc_getattr()
45 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_getattr()
51 resp->status = fh_verify(rqstp, &resp->fh, 0, in nfsd3_proc_getattr()
65 nfsd3_proc_setattr(struct svc_rqst *rqstp) in nfsd3_proc_setattr() argument
67 struct nfsd3_sattrargs *argp = rqstp->rq_argp; in nfsd3_proc_setattr()
68 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_setattr()
74 resp->status = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, in nfsd3_proc_setattr()
83 nfsd3_proc_lookup(struct svc_rqst *rqstp) in nfsd3_proc_lookup() argument
85 struct nfsd3_diropargs *argp = rqstp->rq_argp; in nfsd3_proc_lookup()
86 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfsd3_proc_lookup()
96 resp->status = nfsd_lookup(rqstp, &resp->dirfh, in nfsd3_proc_lookup()
106 nfsd3_proc_access(struct svc_rqst *rqstp) in nfsd3_proc_access() argument
108 struct nfsd3_accessargs *argp = rqstp->rq_argp; in nfsd3_proc_access()
109 struct nfsd3_accessres *resp = rqstp->rq_resp; in nfsd3_proc_access()
117 resp->status = nfsd_access(rqstp, &resp->fh, &resp->access, NULL); in nfsd3_proc_access()
125 nfsd3_proc_readlink(struct svc_rqst *rqstp) in nfsd3_proc_readlink() argument
127 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd3_proc_readlink()
128 struct nfsd3_readlinkres *resp = rqstp->rq_resp; in nfsd3_proc_readlink()
135 resp->pages = rqstp->rq_next_page++; in nfsd3_proc_readlink()
136 resp->status = nfsd_readlink(rqstp, &resp->fh, in nfsd3_proc_readlink()
145 nfsd3_proc_read(struct svc_rqst *rqstp) in nfsd3_proc_read() argument
147 struct nfsd3_readargs *argp = rqstp->rq_argp; in nfsd3_proc_read()
148 struct nfsd3_readres *resp = rqstp->rq_resp; in nfsd3_proc_read()
149 u32 max_blocksize = svc_max_payload(rqstp); in nfsd3_proc_read()
162 resp->pages = rqstp->rq_next_page; in nfsd3_proc_read()
164 struct page *page = *(rqstp->rq_next_page++); in nfsd3_proc_read()
166 rqstp->rq_vec[v].iov_base = page_address(page); in nfsd3_proc_read()
167 rqstp->rq_vec[v].iov_len = min_t(unsigned int, len, PAGE_SIZE); in nfsd3_proc_read()
168 len -= rqstp->rq_vec[v].iov_len; in nfsd3_proc_read()
177 svc_reserve_auth(rqstp, ((1 + NFS3_POST_OP_ATTR_WORDS + 3)<<2) + resp->count +4); in nfsd3_proc_read()
180 resp->status = nfsd_read(rqstp, &resp->fh, argp->offset, in nfsd3_proc_read()
181 rqstp->rq_vec, v, &resp->count, &resp->eof); in nfsd3_proc_read()
189 nfsd3_proc_write(struct svc_rqst *rqstp) in nfsd3_proc_write() argument
191 struct nfsd3_writeargs *argp = rqstp->rq_argp; in nfsd3_proc_write()
192 struct nfsd3_writeres *resp = rqstp->rq_resp; in nfsd3_proc_write()
204 nvecs = svc_fill_write_vector(rqstp, &argp->payload); in nfsd3_proc_write()
209 resp->status = nfsd_write(rqstp, &resp->fh, argp->offset, in nfsd3_proc_write()
210 rqstp->rq_vec, nvecs, &cnt, in nfsd3_proc_write()
223 nfsd3_proc_create(struct svc_rqst *rqstp) in nfsd3_proc_create() argument
225 struct nfsd3_createargs *argp = rqstp->rq_argp; in nfsd3_proc_create()
226 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfsd3_proc_create()
249 resp->status = do_nfsd_create(rqstp, dirfhp, argp->name, argp->len, in nfsd3_proc_create()
259 nfsd3_proc_mkdir(struct svc_rqst *rqstp) in nfsd3_proc_mkdir() argument
261 struct nfsd3_createargs *argp = rqstp->rq_argp; in nfsd3_proc_mkdir()
262 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfsd3_proc_mkdir()
272 resp->status = nfsd_create(rqstp, &resp->dirfh, argp->name, argp->len, in nfsd3_proc_mkdir()
279 nfsd3_proc_symlink(struct svc_rqst *rqstp) in nfsd3_proc_symlink() argument
281 struct nfsd3_symlinkargs *argp = rqstp->rq_argp; in nfsd3_proc_symlink()
282 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfsd3_proc_symlink()
293 argp->tname = svc_fill_symlink_pathname(rqstp, &argp->first, in nfsd3_proc_symlink()
294 page_address(rqstp->rq_arg.pages[0]), in nfsd3_proc_symlink()
308 resp->status = nfsd_symlink(rqstp, &resp->dirfh, argp->fname, in nfsd3_proc_symlink()
319 nfsd3_proc_mknod(struct svc_rqst *rqstp) in nfsd3_proc_mknod() argument
321 struct nfsd3_mknodargs *argp = rqstp->rq_argp; in nfsd3_proc_mknod()
322 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfsd3_proc_mknod()
347 resp->status = nfsd_create(rqstp, &resp->dirfh, argp->name, argp->len, in nfsd3_proc_mknod()
358 nfsd3_proc_remove(struct svc_rqst *rqstp) in nfsd3_proc_remove() argument
360 struct nfsd3_diropargs *argp = rqstp->rq_argp; in nfsd3_proc_remove()
361 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_remove()
370 resp->status = nfsd_unlink(rqstp, &resp->fh, -S_IFDIR, in nfsd3_proc_remove()
380 nfsd3_proc_rmdir(struct svc_rqst *rqstp) in nfsd3_proc_rmdir() argument
382 struct nfsd3_diropargs *argp = rqstp->rq_argp; in nfsd3_proc_rmdir()
383 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_rmdir()
391 resp->status = nfsd_unlink(rqstp, &resp->fh, S_IFDIR, in nfsd3_proc_rmdir()
398 nfsd3_proc_rename(struct svc_rqst *rqstp) in nfsd3_proc_rename() argument
400 struct nfsd3_renameargs *argp = rqstp->rq_argp; in nfsd3_proc_rename()
401 struct nfsd3_renameres *resp = rqstp->rq_resp; in nfsd3_proc_rename()
414 resp->status = nfsd_rename(rqstp, &resp->ffh, argp->fname, argp->flen, in nfsd3_proc_rename()
420 nfsd3_proc_link(struct svc_rqst *rqstp) in nfsd3_proc_link() argument
422 struct nfsd3_linkargs *argp = rqstp->rq_argp; in nfsd3_proc_link()
423 struct nfsd3_linkres *resp = rqstp->rq_resp; in nfsd3_proc_link()
434 resp->status = nfsd_link(rqstp, &resp->tfh, argp->tname, argp->tlen, in nfsd3_proc_link()
439 static void nfsd3_init_dirlist_pages(struct svc_rqst *rqstp, in nfsd3_init_dirlist_pages() argument
446 count = clamp(count, (u32)(XDR_UNIT * 2), svc_max_payload(rqstp)); in nfsd3_init_dirlist_pages()
452 buf->pages = rqstp->rq_next_page; in nfsd3_init_dirlist_pages()
453 rqstp->rq_next_page += (buf->buflen + PAGE_SIZE - 1) >> PAGE_SHIFT; in nfsd3_init_dirlist_pages()
470 nfsd3_proc_readdir(struct svc_rqst *rqstp) in nfsd3_proc_readdir() argument
472 struct nfsd3_readdirargs *argp = rqstp->rq_argp; in nfsd3_proc_readdir()
473 struct nfsd3_readdirres *resp = rqstp->rq_resp; in nfsd3_proc_readdir()
480 nfsd3_init_dirlist_pages(rqstp, resp, argp->count); in nfsd3_proc_readdir()
485 resp->rqstp = rqstp; in nfsd3_proc_readdir()
487 resp->status = nfsd_readdir(rqstp, &resp->fh, &offset, in nfsd3_proc_readdir()
493 rqstp->rq_next_page = resp->xdr.page_ptr + 1; in nfsd3_proc_readdir()
503 nfsd3_proc_readdirplus(struct svc_rqst *rqstp) in nfsd3_proc_readdirplus() argument
505 struct nfsd3_readdirargs *argp = rqstp->rq_argp; in nfsd3_proc_readdirplus()
506 struct nfsd3_readdirres *resp = rqstp->rq_resp; in nfsd3_proc_readdirplus()
513 nfsd3_init_dirlist_pages(rqstp, resp, argp->count); in nfsd3_proc_readdirplus()
518 resp->rqstp = rqstp; in nfsd3_proc_readdirplus()
521 resp->status = fh_verify(rqstp, &resp->fh, S_IFDIR, NFSD_MAY_NOP); in nfsd3_proc_readdirplus()
530 resp->status = nfsd_readdir(rqstp, &resp->fh, &offset, in nfsd3_proc_readdirplus()
536 rqstp->rq_next_page = resp->xdr.page_ptr + 1; in nfsd3_proc_readdirplus()
546 nfsd3_proc_fsstat(struct svc_rqst *rqstp) in nfsd3_proc_fsstat() argument
548 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd3_proc_fsstat()
549 struct nfsd3_fsstatres *resp = rqstp->rq_resp; in nfsd3_proc_fsstat()
554 resp->status = nfsd_statfs(rqstp, &argp->fh, &resp->stats, 0); in nfsd3_proc_fsstat()
563 nfsd3_proc_fsinfo(struct svc_rqst *rqstp) in nfsd3_proc_fsinfo() argument
565 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd3_proc_fsinfo()
566 struct nfsd3_fsinfores *resp = rqstp->rq_resp; in nfsd3_proc_fsinfo()
567 u32 max_blocksize = svc_max_payload(rqstp); in nfsd3_proc_fsinfo()
582 resp->status = fh_verify(rqstp, &argp->fh, 0, in nfsd3_proc_fsinfo()
606 nfsd3_proc_pathconf(struct svc_rqst *rqstp) in nfsd3_proc_pathconf() argument
608 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd3_proc_pathconf()
609 struct nfsd3_pathconfres *resp = rqstp->rq_resp; in nfsd3_proc_pathconf()
622 resp->status = fh_verify(rqstp, &argp->fh, 0, NFSD_MAY_NOP); in nfsd3_proc_pathconf()
648 nfsd3_proc_commit(struct svc_rqst *rqstp) in nfsd3_proc_commit() argument
650 struct nfsd3_commitargs *argp = rqstp->rq_argp; in nfsd3_proc_commit()
651 struct nfsd3_commitres *resp = rqstp->rq_resp; in nfsd3_proc_commit()
664 resp->status = nfsd_commit(rqstp, &resp->fh, argp->offset, in nfsd3_proc_commit()