Lines Matching refs:rqstp

17 nfsd_proc_null(struct svc_rqst *rqstp)  in nfsd_proc_null()  argument
27 nfsd_proc_getattr(struct svc_rqst *rqstp) in nfsd_proc_getattr() argument
29 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd_proc_getattr()
30 struct nfsd_attrstat *resp = rqstp->rq_resp; in nfsd_proc_getattr()
35 resp->status = fh_verify(rqstp, &resp->fh, 0, in nfsd_proc_getattr()
49 nfsd_proc_setattr(struct svc_rqst *rqstp) in nfsd_proc_setattr() argument
51 struct nfsd_sattrargs *argp = rqstp->rq_argp; in nfsd_proc_setattr()
52 struct nfsd_attrstat *resp = rqstp->rq_resp; in nfsd_proc_setattr()
89 resp->status = fh_verify(rqstp, fhp, 0, NFSD_MAY_NOP); in nfsd_proc_setattr()
106 resp->status = nfsd_setattr(rqstp, fhp, &attrs, 0, (time64_t)0); in nfsd_proc_setattr()
117 nfsd_proc_root(struct svc_rqst *rqstp) in nfsd_proc_root() argument
129 nfsd_proc_lookup(struct svc_rqst *rqstp) in nfsd_proc_lookup() argument
131 struct nfsd_diropargs *argp = rqstp->rq_argp; in nfsd_proc_lookup()
132 struct nfsd_diropres *resp = rqstp->rq_resp; in nfsd_proc_lookup()
138 resp->status = nfsd_lookup(rqstp, &argp->fh, argp->name, argp->len, in nfsd_proc_lookup()
153 nfsd_proc_readlink(struct svc_rqst *rqstp) in nfsd_proc_readlink() argument
155 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd_proc_readlink()
156 struct nfsd_readlinkres *resp = rqstp->rq_resp; in nfsd_proc_readlink()
162 resp->page = *(rqstp->rq_next_page++); in nfsd_proc_readlink()
163 resp->status = nfsd_readlink(rqstp, &argp->fh, in nfsd_proc_readlink()
175 nfsd_proc_read(struct svc_rqst *rqstp) in nfsd_proc_read() argument
177 struct nfsd_readargs *argp = rqstp->rq_argp; in nfsd_proc_read()
178 struct nfsd_readres *resp = rqstp->rq_resp; in nfsd_proc_read()
188 argp->count = min_t(u32, argp->count, rqstp->rq_res.buflen); in nfsd_proc_read()
192 resp->pages = rqstp->rq_next_page; in nfsd_proc_read()
194 struct page *page = *(rqstp->rq_next_page++); in nfsd_proc_read()
196 rqstp->rq_vec[v].iov_base = page_address(page); in nfsd_proc_read()
197 rqstp->rq_vec[v].iov_len = min_t(unsigned int, len, PAGE_SIZE); in nfsd_proc_read()
198 len -= rqstp->rq_vec[v].iov_len; in nfsd_proc_read()
205 svc_reserve_auth(rqstp, (19<<2) + argp->count + 4); in nfsd_proc_read()
209 resp->status = nfsd_read(rqstp, &resp->fh, argp->offset, in nfsd_proc_read()
210 rqstp->rq_vec, v, &resp->count, &eof); in nfsd_proc_read()
220 nfsd_proc_writecache(struct svc_rqst *rqstp) in nfsd_proc_writecache() argument
230 nfsd_proc_write(struct svc_rqst *rqstp) in nfsd_proc_write() argument
232 struct nfsd_writeargs *argp = rqstp->rq_argp; in nfsd_proc_write()
233 struct nfsd_attrstat *resp = rqstp->rq_resp; in nfsd_proc_write()
241 nvecs = svc_fill_write_vector(rqstp, &argp->payload); in nfsd_proc_write()
243 resp->status = nfsd_write(rqstp, fh_copy(&resp->fh, &argp->fh), in nfsd_proc_write()
244 argp->offset, rqstp->rq_vec, nvecs, in nfsd_proc_write()
260 nfsd_proc_create(struct svc_rqst *rqstp) in nfsd_proc_create() argument
262 struct nfsd_createargs *argp = rqstp->rq_argp; in nfsd_proc_create()
263 struct nfsd_diropres *resp = rqstp->rq_resp; in nfsd_proc_create()
280 resp->status = fh_verify(rqstp, dirfhp, S_IFDIR, NFSD_MAY_EXEC); in nfsd_proc_create()
346 resp->status = nfsd_permission(rqstp, in nfsd_proc_create()
394 resp->status = nfsd_create_locked(rqstp, dirfhp, &attrs, type, in nfsd_proc_create()
405 resp->status = nfsd_setattr(rqstp, newfhp, &attrs, 0, in nfsd_proc_create()
422 nfsd_proc_remove(struct svc_rqst *rqstp) in nfsd_proc_remove() argument
424 struct nfsd_diropargs *argp = rqstp->rq_argp; in nfsd_proc_remove()
425 struct nfsd_stat *resp = rqstp->rq_resp; in nfsd_proc_remove()
431 resp->status = nfsd_unlink(rqstp, &argp->fh, -S_IFDIR, in nfsd_proc_remove()
438 nfsd_proc_rename(struct svc_rqst *rqstp) in nfsd_proc_rename() argument
440 struct nfsd_renameargs *argp = rqstp->rq_argp; in nfsd_proc_rename()
441 struct nfsd_stat *resp = rqstp->rq_resp; in nfsd_proc_rename()
448 resp->status = nfsd_rename(rqstp, &argp->ffh, argp->fname, argp->flen, in nfsd_proc_rename()
456 nfsd_proc_link(struct svc_rqst *rqstp) in nfsd_proc_link() argument
458 struct nfsd_linkargs *argp = rqstp->rq_argp; in nfsd_proc_link()
459 struct nfsd_stat *resp = rqstp->rq_resp; in nfsd_proc_link()
468 resp->status = nfsd_link(rqstp, &argp->tfh, argp->tname, argp->tlen, in nfsd_proc_link()
476 nfsd_proc_symlink(struct svc_rqst *rqstp) in nfsd_proc_symlink() argument
478 struct nfsd_symlinkargs *argp = rqstp->rq_argp; in nfsd_proc_symlink()
479 struct nfsd_stat *resp = rqstp->rq_resp; in nfsd_proc_symlink()
490 argp->tname = svc_fill_symlink_pathname(rqstp, &argp->first, in nfsd_proc_symlink()
491 page_address(rqstp->rq_arg.pages[0]), in nfsd_proc_symlink()
503 resp->status = nfsd_symlink(rqstp, &argp->ffh, argp->fname, argp->flen, in nfsd_proc_symlink()
518 nfsd_proc_mkdir(struct svc_rqst *rqstp) in nfsd_proc_mkdir() argument
520 struct nfsd_createargs *argp = rqstp->rq_argp; in nfsd_proc_mkdir()
521 struct nfsd_diropres *resp = rqstp->rq_resp; in nfsd_proc_mkdir()
535 resp->status = nfsd_create(rqstp, &argp->fh, argp->name, argp->len, in nfsd_proc_mkdir()
550 nfsd_proc_rmdir(struct svc_rqst *rqstp) in nfsd_proc_rmdir() argument
552 struct nfsd_diropargs *argp = rqstp->rq_argp; in nfsd_proc_rmdir()
553 struct nfsd_stat *resp = rqstp->rq_resp; in nfsd_proc_rmdir()
557 resp->status = nfsd_unlink(rqstp, &argp->fh, S_IFDIR, in nfsd_proc_rmdir()
563 static void nfsd_init_dirlist_pages(struct svc_rqst *rqstp, in nfsd_init_dirlist_pages() argument
575 buf->pages = rqstp->rq_next_page; in nfsd_init_dirlist_pages()
576 rqstp->rq_next_page++; in nfsd_init_dirlist_pages()
585 nfsd_proc_readdir(struct svc_rqst *rqstp) in nfsd_proc_readdir() argument
587 struct nfsd_readdirargs *argp = rqstp->rq_argp; in nfsd_proc_readdir()
588 struct nfsd_readdirres *resp = rqstp->rq_resp; in nfsd_proc_readdir()
595 nfsd_init_dirlist_pages(rqstp, resp, argp->count); in nfsd_proc_readdir()
600 resp->status = nfsd_readdir(rqstp, &argp->fh, &offset, in nfsd_proc_readdir()
612 nfsd_proc_statfs(struct svc_rqst *rqstp) in nfsd_proc_statfs() argument
614 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd_proc_statfs()
615 struct nfsd_statfsres *resp = rqstp->rq_resp; in nfsd_proc_statfs()
619 resp->status = nfsd_statfs(rqstp, &argp->fh, &resp->stats, in nfsd_proc_statfs()