Lines Matching refs:argp
45 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd_proc_getattr() local
48 dprintk("nfsd: GETATTR %s\n", SVCFH_fmt(&argp->fh)); in nfsd_proc_getattr()
50 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_getattr()
63 struct nfsd_sattrargs *argp = rqstp->rq_argp; in nfsd_proc_setattr() local
65 struct iattr *iap = &argp->attrs; in nfsd_proc_setattr()
70 SVCFH_fmt(&argp->fh), in nfsd_proc_setattr()
71 argp->attrs.ia_valid, (long) argp->attrs.ia_size); in nfsd_proc_setattr()
73 fhp = fh_copy(&resp->fh, &argp->fh); in nfsd_proc_setattr()
130 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 nfserr = nfsd_lookup(rqstp, &argp->fh, argp->name, argp->len, in nfsd_proc_lookup()
141 fh_put(&argp->fh); in nfsd_proc_lookup()
151 struct nfsd_readlinkargs *argp = rqstp->rq_argp; in nfsd_proc_readlink() local
155 dprintk("nfsd: READLINK %s\n", SVCFH_fmt(&argp->fh)); in nfsd_proc_readlink()
159 nfserr = nfsd_readlink(rqstp, &argp->fh, argp->buffer, &resp->len); in nfsd_proc_readlink()
161 fh_put(&argp->fh); in nfsd_proc_readlink()
172 struct nfsd_readargs *argp = rqstp->rq_argp; in nfsd_proc_read() local
178 SVCFH_fmt(&argp->fh), in nfsd_proc_read()
179 argp->count, argp->offset); in nfsd_proc_read()
185 if (NFSSVC_MAXBLKSIZE_V2 < argp->count) { in nfsd_proc_read()
190 argp->count); in nfsd_proc_read()
191 argp->count = NFSSVC_MAXBLKSIZE_V2; 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 nfserr = nfsd_read(rqstp, fh_copy(&resp->fh, &argp->fh), in nfsd_proc_read()
197 argp->offset, in nfsd_proc_read()
198 rqstp->rq_vec, argp->vlen, in nfsd_proc_read()
213 struct nfsd_writeargs *argp = rqstp->rq_argp; in nfsd_proc_write() local
216 unsigned long cnt = argp->len; in nfsd_proc_write()
220 SVCFH_fmt(&argp->fh), in nfsd_proc_write()
221 argp->len, argp->offset); in nfsd_proc_write()
224 &argp->first, cnt); in nfsd_proc_write()
227 nfserr = nfsd_write(rqstp, fh_copy(&resp->fh, &argp->fh), in nfsd_proc_write()
228 argp->offset, rqstp->rq_vec, nvecs, in nfsd_proc_write()
242 struct nfsd_createargs *argp = rqstp->rq_argp; in nfsd_proc_create() local
244 svc_fh *dirfhp = &argp->fh; in nfsd_proc_create()
246 struct iattr *attr = &argp->attrs; in nfsd_proc_create()
255 SVCFH_fmt(dirfhp), argp->len, argp->name); in nfsd_proc_create()
265 if (isdotent(argp->name, argp->len)) in nfsd_proc_create()
274 dchild = lookup_one_len(argp->name, dirfhp->fh_dentry, argp->len); in nfsd_proc_create()
372 nfserr = nfsd_create_locked(rqstp, dirfhp, argp->name, in nfsd_proc_create()
373 argp->len, attr, type, rdev, newfhp); in nfsd_proc_create()
376 argp->name, attr->ia_valid, (long) attr->ia_size); in nfsd_proc_create()
398 struct nfsd_diropargs *argp = rqstp->rq_argp; in nfsd_proc_remove() local
401 dprintk("nfsd: REMOVE %s %.*s\n", SVCFH_fmt(&argp->fh), in nfsd_proc_remove()
402 argp->len, argp->name); in nfsd_proc_remove()
405 nfserr = nfsd_unlink(rqstp, &argp->fh, -S_IFDIR, argp->name, argp->len); in nfsd_proc_remove()
406 fh_put(&argp->fh); in nfsd_proc_remove()
413 struct nfsd_renameargs *argp = rqstp->rq_argp; in nfsd_proc_rename() local
417 SVCFH_fmt(&argp->ffh), argp->flen, argp->fname); in nfsd_proc_rename()
419 SVCFH_fmt(&argp->tfh), argp->tlen, argp->tname); in nfsd_proc_rename()
421 nfserr = nfsd_rename(rqstp, &argp->ffh, argp->fname, argp->flen, in nfsd_proc_rename()
422 &argp->tfh, argp->tname, argp->tlen); in nfsd_proc_rename()
423 fh_put(&argp->ffh); in nfsd_proc_rename()
424 fh_put(&argp->tfh); in nfsd_proc_rename()
431 struct nfsd_linkargs *argp = rqstp->rq_argp; in nfsd_proc_link() local
435 SVCFH_fmt(&argp->ffh)); in nfsd_proc_link()
437 SVCFH_fmt(&argp->tfh), in nfsd_proc_link()
438 argp->tlen, in nfsd_proc_link()
439 argp->tname); in nfsd_proc_link()
441 nfserr = nfsd_link(rqstp, &argp->tfh, argp->tname, argp->tlen, in nfsd_proc_link()
442 &argp->ffh); in nfsd_proc_link()
443 fh_put(&argp->ffh); in nfsd_proc_link()
444 fh_put(&argp->tfh); in nfsd_proc_link()
451 struct nfsd_symlinkargs *argp = rqstp->rq_argp; in nfsd_proc_symlink() local
455 if (argp->tlen > NFS_MAXPATHLEN) in nfsd_proc_symlink()
458 argp->tname = svc_fill_symlink_pathname(rqstp, &argp->first, in nfsd_proc_symlink()
460 argp->tlen); in nfsd_proc_symlink()
461 if (IS_ERR(argp->tname)) in nfsd_proc_symlink()
462 return nfserrno(PTR_ERR(argp->tname)); in nfsd_proc_symlink()
465 SVCFH_fmt(&argp->ffh), argp->flen, argp->fname, in nfsd_proc_symlink()
466 argp->tlen, argp->tname); in nfsd_proc_symlink()
469 nfserr = nfsd_symlink(rqstp, &argp->ffh, argp->fname, argp->flen, in nfsd_proc_symlink()
470 argp->tname, &newfh); in nfsd_proc_symlink()
472 kfree(argp->tname); in nfsd_proc_symlink()
473 fh_put(&argp->ffh); in nfsd_proc_symlink()
485 struct nfsd_createargs *argp = rqstp->rq_argp; in nfsd_proc_mkdir() local
489 dprintk("nfsd: MKDIR %s %.*s\n", SVCFH_fmt(&argp->fh), argp->len, argp->name); in nfsd_proc_mkdir()
496 argp->attrs.ia_valid &= ~ATTR_SIZE; in nfsd_proc_mkdir()
498 nfserr = nfsd_create(rqstp, &argp->fh, argp->name, argp->len, in nfsd_proc_mkdir()
499 &argp->attrs, S_IFDIR, 0, &resp->fh); in nfsd_proc_mkdir()
500 fh_put(&argp->fh); in nfsd_proc_mkdir()
510 struct nfsd_diropargs *argp = rqstp->rq_argp; in nfsd_proc_rmdir() local
513 dprintk("nfsd: RMDIR %s %.*s\n", SVCFH_fmt(&argp->fh), argp->len, argp->name); in nfsd_proc_rmdir()
515 nfserr = nfsd_unlink(rqstp, &argp->fh, S_IFDIR, argp->name, argp->len); in nfsd_proc_rmdir()
516 fh_put(&argp->fh); in nfsd_proc_rmdir()
526 struct nfsd_readdirargs *argp = rqstp->rq_argp; in nfsd_proc_readdir() local
533 SVCFH_fmt(&argp->fh), in nfsd_proc_readdir()
534 argp->count, argp->cookie); in nfsd_proc_readdir()
537 count = (argp->count >> 2) - 2; in nfsd_proc_readdir()
544 resp->buffer = argp->buffer; in nfsd_proc_readdir()
549 offset = argp->cookie; in nfsd_proc_readdir()
550 nfserr = nfsd_readdir(rqstp, &argp->fh, &offset, in nfsd_proc_readdir()
553 resp->count = resp->buffer - argp->buffer; in nfsd_proc_readdir()
557 fh_put(&argp->fh); in nfsd_proc_readdir()
567 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd_proc_statfs() local
571 dprintk("nfsd: STATFS %s\n", SVCFH_fmt(&argp->fh)); in nfsd_proc_statfs()
573 nfserr = nfsd_statfs(rqstp, &argp->fh, &resp->stats, in nfsd_proc_statfs()
575 fh_put(&argp->fh); in nfsd_proc_statfs()