Lines Matching refs:argp
29 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd_proc_getattr() local
32 dprintk("nfsd: GETATTR %s\n", SVCFH_fmt(&argp->fh)); in nfsd_proc_getattr()
34 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_getattr()
51 struct nfsd_sattrargs *argp = rqstp->rq_argp; in nfsd_proc_setattr() local
53 struct iattr *iap = &argp->attrs; in nfsd_proc_setattr()
60 SVCFH_fmt(&argp->fh), in nfsd_proc_setattr()
61 argp->attrs.ia_valid, (long) argp->attrs.ia_size); in nfsd_proc_setattr()
63 fhp = fh_copy(&resp->fh, &argp->fh); in nfsd_proc_setattr()
131 struct nfsd_diropargs *argp = rqstp->rq_argp; in nfsd_proc_lookup() local
135 SVCFH_fmt(&argp->fh), argp->len, argp->name); in nfsd_proc_lookup()
138 resp->status = nfsd_lookup(rqstp, &argp->fh, argp->name, argp->len, in nfsd_proc_lookup()
140 fh_put(&argp->fh); in nfsd_proc_lookup()
155 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd_proc_readlink() local
158 dprintk("nfsd: READLINK %s\n", SVCFH_fmt(&argp->fh)); in nfsd_proc_readlink()
163 resp->status = nfsd_readlink(rqstp, &argp->fh, in nfsd_proc_readlink()
166 fh_put(&argp->fh); in nfsd_proc_readlink()
177 struct nfsd_readargs *argp = rqstp->rq_argp; in nfsd_proc_read() local
182 SVCFH_fmt(&argp->fh), in nfsd_proc_read()
183 argp->count, argp->offset); in nfsd_proc_read()
185 argp->count = min_t(u32, argp->count, NFSSVC_MAXBLKSIZE_V2); in nfsd_proc_read()
186 argp->count = min_t(u32, argp->count, rqstp->rq_res.buflen); in nfsd_proc_read()
193 svc_reserve_auth(rqstp, (19<<2) + argp->count + 4); in nfsd_proc_read()
195 resp->count = argp->count; in nfsd_proc_read()
196 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_read()
197 resp->status = nfsd_read(rqstp, &resp->fh, argp->offset, in nfsd_proc_read()
220 struct nfsd_writeargs *argp = rqstp->rq_argp; in nfsd_proc_write() local
222 unsigned long cnt = argp->len; in nfsd_proc_write()
226 SVCFH_fmt(&argp->fh), in nfsd_proc_write()
227 argp->len, argp->offset); in nfsd_proc_write()
229 nvecs = svc_fill_write_vector(rqstp, &argp->payload); in nfsd_proc_write()
231 resp->status = nfsd_write(rqstp, fh_copy(&resp->fh, &argp->fh), in nfsd_proc_write()
232 argp->offset, rqstp->rq_vec, nvecs, in nfsd_proc_write()
250 struct nfsd_createargs *argp = rqstp->rq_argp; in nfsd_proc_create() local
252 svc_fh *dirfhp = &argp->fh; in nfsd_proc_create()
254 struct iattr *attr = &argp->attrs; in nfsd_proc_create()
265 SVCFH_fmt(dirfhp), argp->len, argp->name); in nfsd_proc_create()
275 if (isdotent(argp->name, argp->len)) in nfsd_proc_create()
284 dchild = lookup_one_len(argp->name, dirfhp->fh_dentry, argp->len); in nfsd_proc_create()
386 argp->name, attr->ia_valid, (long) attr->ia_size); in nfsd_proc_create()
412 struct nfsd_diropargs *argp = rqstp->rq_argp; in nfsd_proc_remove() local
415 dprintk("nfsd: REMOVE %s %.*s\n", SVCFH_fmt(&argp->fh), in nfsd_proc_remove()
416 argp->len, argp->name); in nfsd_proc_remove()
419 resp->status = nfsd_unlink(rqstp, &argp->fh, -S_IFDIR, in nfsd_proc_remove()
420 argp->name, argp->len); in nfsd_proc_remove()
421 fh_put(&argp->fh); in nfsd_proc_remove()
428 struct nfsd_renameargs *argp = rqstp->rq_argp; in nfsd_proc_rename() local
432 SVCFH_fmt(&argp->ffh), argp->flen, argp->fname); in nfsd_proc_rename()
434 SVCFH_fmt(&argp->tfh), argp->tlen, argp->tname); in nfsd_proc_rename()
436 resp->status = nfsd_rename(rqstp, &argp->ffh, argp->fname, argp->flen, in nfsd_proc_rename()
437 &argp->tfh, argp->tname, argp->tlen); in nfsd_proc_rename()
438 fh_put(&argp->ffh); in nfsd_proc_rename()
439 fh_put(&argp->tfh); in nfsd_proc_rename()
446 struct nfsd_linkargs *argp = rqstp->rq_argp; in nfsd_proc_link() local
450 SVCFH_fmt(&argp->ffh)); in nfsd_proc_link()
452 SVCFH_fmt(&argp->tfh), in nfsd_proc_link()
453 argp->tlen, in nfsd_proc_link()
454 argp->tname); in nfsd_proc_link()
456 resp->status = nfsd_link(rqstp, &argp->tfh, argp->tname, argp->tlen, in nfsd_proc_link()
457 &argp->ffh); in nfsd_proc_link()
458 fh_put(&argp->ffh); in nfsd_proc_link()
459 fh_put(&argp->tfh); in nfsd_proc_link()
466 struct nfsd_symlinkargs *argp = rqstp->rq_argp; in nfsd_proc_symlink() local
469 .na_iattr = &argp->attrs, in nfsd_proc_symlink()
473 if (argp->tlen > NFS_MAXPATHLEN) { in nfsd_proc_symlink()
478 argp->tname = svc_fill_symlink_pathname(rqstp, &argp->first, in nfsd_proc_symlink()
480 argp->tlen); in nfsd_proc_symlink()
481 if (IS_ERR(argp->tname)) { in nfsd_proc_symlink()
482 resp->status = nfserrno(PTR_ERR(argp->tname)); in nfsd_proc_symlink()
487 SVCFH_fmt(&argp->ffh), argp->flen, argp->fname, in nfsd_proc_symlink()
488 argp->tlen, argp->tname); in nfsd_proc_symlink()
491 resp->status = nfsd_symlink(rqstp, &argp->ffh, argp->fname, argp->flen, in nfsd_proc_symlink()
492 argp->tname, &attrs, &newfh); in nfsd_proc_symlink()
494 kfree(argp->tname); in nfsd_proc_symlink()
495 fh_put(&argp->ffh); in nfsd_proc_symlink()
508 struct nfsd_createargs *argp = rqstp->rq_argp; in nfsd_proc_mkdir() local
511 .na_iattr = &argp->attrs, in nfsd_proc_mkdir()
514 dprintk("nfsd: MKDIR %s %.*s\n", SVCFH_fmt(&argp->fh), argp->len, argp->name); in nfsd_proc_mkdir()
521 argp->attrs.ia_valid &= ~ATTR_SIZE; in nfsd_proc_mkdir()
523 resp->status = nfsd_create(rqstp, &argp->fh, argp->name, argp->len, in nfsd_proc_mkdir()
525 fh_put(&argp->fh); in nfsd_proc_mkdir()
540 struct nfsd_diropargs *argp = rqstp->rq_argp; in nfsd_proc_rmdir() local
543 dprintk("nfsd: RMDIR %s %.*s\n", SVCFH_fmt(&argp->fh), argp->len, argp->name); in nfsd_proc_rmdir()
545 resp->status = nfsd_unlink(rqstp, &argp->fh, S_IFDIR, in nfsd_proc_rmdir()
546 argp->name, argp->len); in nfsd_proc_rmdir()
547 fh_put(&argp->fh); in nfsd_proc_rmdir()
575 struct nfsd_readdirargs *argp = rqstp->rq_argp; in nfsd_proc_readdir() local
580 SVCFH_fmt(&argp->fh), in nfsd_proc_readdir()
581 argp->count, argp->cookie); in nfsd_proc_readdir()
583 nfsd_init_dirlist_pages(rqstp, resp, argp->count); in nfsd_proc_readdir()
587 offset = argp->cookie; in nfsd_proc_readdir()
588 resp->status = nfsd_readdir(rqstp, &argp->fh, &offset, in nfsd_proc_readdir()
592 fh_put(&argp->fh); in nfsd_proc_readdir()
602 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd_proc_statfs() local
605 dprintk("nfsd: STATFS %s\n", SVCFH_fmt(&argp->fh)); in nfsd_proc_statfs()
607 resp->status = nfsd_statfs(rqstp, &argp->fh, &resp->stats, in nfsd_proc_statfs()
609 fh_put(&argp->fh); in nfsd_proc_statfs()