Lines Matching refs:rqstp

83 nfsd_cross_mnt(struct svc_rqst *rqstp, struct dentry **dpp,   in nfsd_cross_mnt()  argument
96 exp2 = rqst_exp_get_by_name(rqstp, &path); in nfsd_cross_mnt()
111 if (nfsd_v4client(rqstp) || in nfsd_cross_mnt()
142 static int nfsd_lookup_parent(struct svc_rqst *rqstp, struct dentry *dparent, struct svc_export **e… in nfsd_lookup_parent() argument
150 exp2 = rqst_exp_parent(rqstp, &path); in nfsd_lookup_parent()
181 nfsd_lookup_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd_lookup_dentry() argument
201 else if (!EX_NOHIDE(exp) && !nfsd_v4client(rqstp)) in nfsd_lookup_dentry()
205 host_err = nfsd_lookup_parent(rqstp, dparent, &exp, &dentry); in nfsd_lookup_dentry()
224 if ((host_err = nfsd_cross_mnt(rqstp, &dentry, &exp))) { in nfsd_lookup_dentry()
252 nfsd_lookup(struct svc_rqst *rqstp, struct svc_fh *fhp, const char *name, in nfsd_lookup() argument
259 err = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_EXEC); in nfsd_lookup()
262 err = nfsd_lookup_dentry(rqstp, fhp, name, len, &exp, &dentry); in nfsd_lookup()
265 err = check_nfsd_access(exp, rqstp); in nfsd_lookup()
328 nfsd_get_write_access(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd_get_write_access() argument
337 err = nfsd_permission(rqstp, fhp->fh_export, fhp->fh_dentry, in nfsd_get_write_access()
362 nfsd_setattr(struct svc_rqst *rqstp, struct svc_fh *fhp, struct iattr *iap, in nfsd_setattr() argument
383 err = fh_verify(rqstp, fhp, ftype, accmode); in nfsd_setattr()
409 err = nfsd_get_write_access(rqstp, fhp, iap); in nfsd_setattr()
475 __be32 nfsd4_set_nfs4_label(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd4_set_nfs4_label() argument
482 error = fh_verify(rqstp, fhp, 0 /* S_IFREG */, NFSD_MAY_SATTR); in nfsd4_set_nfs4_label()
494 __be32 nfsd4_set_nfs4_label(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd4_set_nfs4_label() argument
501 __be32 nfsd4_vfs_fallocate(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd4_vfs_fallocate() argument
562 nfsd_access(struct svc_rqst *rqstp, struct svc_fh *fhp, u32 *access, u32 *supported) in nfsd_access() argument
570 error = fh_verify(rqstp, fhp, 0, NFSD_MAY_NOP); in nfsd_access()
592 err2 = nfsd_permission(rqstp, export, dentry, map->how); in nfsd_access()
637 nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type, in nfsd_open() argument
662 err = fh_verify(rqstp, fhp, type, may_flags); in nfsd_open()
791 struct svc_rqst *rqstp = sd->u.data; in nfsd_splice_actor() local
792 struct page **pp = rqstp->rq_next_page; in nfsd_splice_actor()
798 if (rqstp->rq_res.page_len == 0) { in nfsd_splice_actor()
800 put_page(*rqstp->rq_next_page); in nfsd_splice_actor()
801 *(rqstp->rq_next_page++) = page; in nfsd_splice_actor()
802 rqstp->rq_res.page_base = buf->offset; in nfsd_splice_actor()
803 rqstp->rq_res.page_len = size; in nfsd_splice_actor()
806 if (*rqstp->rq_next_page) in nfsd_splice_actor()
807 put_page(*rqstp->rq_next_page); in nfsd_splice_actor()
808 *(rqstp->rq_next_page++) = page; in nfsd_splice_actor()
809 rqstp->rq_res.page_len += size; in nfsd_splice_actor()
811 rqstp->rq_res.page_len += size; in nfsd_splice_actor()
834 __be32 nfsd_splice_read(struct svc_rqst *rqstp, in nfsd_splice_read() argument
841 .u.data = rqstp, in nfsd_splice_read()
845 rqstp->rq_next_page = rqstp->rq_respages + 1; in nfsd_splice_read()
864 nfsd_vfs_read(struct svc_rqst *rqstp, struct file *file, in nfsd_vfs_read() argument
867 if (file->f_op->splice_read && test_bit(RQ_SPLICE_OK, &rqstp->rq_flags)) in nfsd_vfs_read()
868 return nfsd_splice_read(rqstp, file, offset, count); in nfsd_vfs_read()
911 nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, in nfsd_vfs_write() argument
926 if (test_bit(RQ_LOCAL, &rqstp->rq_flags)) in nfsd_vfs_write()
938 use_wgather = (rqstp->rq_vers == 2) && EX_WGATHER(exp); in nfsd_vfs_write()
969 if (test_bit(RQ_LOCAL, &rqstp->rq_flags)) in nfsd_vfs_write()
979 __be32 nfsd_read(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd_read() argument
986 err = nfsd_open(rqstp, fhp, S_IFREG, NFSD_MAY_READ, &file); in nfsd_read()
991 err = nfsd_vfs_read(rqstp, file, offset, vec, vlen, count); in nfsd_read()
1005 nfsd_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, in nfsd_write() argument
1012 err = nfsd_permission(rqstp, fhp->fh_export, fhp->fh_dentry, in nfsd_write()
1016 err = nfsd_vfs_write(rqstp, fhp, file, offset, vec, vlen, cnt, in nfsd_write()
1019 err = nfsd_open(rqstp, fhp, S_IFREG, NFSD_MAY_WRITE, &file); in nfsd_write()
1024 err = nfsd_vfs_write(rqstp, fhp, file, offset, vec, vlen, in nfsd_write()
1043 nfsd_commit(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd_commit() argument
1058 err = nfsd_open(rqstp, fhp, S_IFREG, in nfsd_commit()
1078 nfsd_create_setattr(struct svc_rqst *rqstp, struct svc_fh *resfhp, in nfsd_create_setattr() argument
1093 return nfsd_setattr(rqstp, resfhp, iap, 0, (time_t)0); in nfsd_create_setattr()
1122 nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd_create() argument
1139 err = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_CREATE); in nfsd_create()
1224 err = nfsd_create_setattr(rqstp, resfhp, iap); in nfsd_create()
1256 do_nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp, in do_nfsd_create() argument
1275 err = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_EXEC); in do_nfsd_create()
1304 err = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_CREATE); in do_nfsd_create()
1392 err = nfsd_create_setattr(rqstp, resfhp, iap); in do_nfsd_create()
1426 nfsd_readlink(struct svc_rqst *rqstp, struct svc_fh *fhp, char *buf, int *lenp) in nfsd_readlink() argument
1434 err = fh_verify(rqstp, fhp, S_IFLNK, NFSD_MAY_NOP); in nfsd_readlink()
1472 nfsd_symlink(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd_symlink() argument
1488 err = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_CREATE); in nfsd_symlink()
1527 nfsd_link(struct svc_rqst *rqstp, struct svc_fh *ffhp, in nfsd_link() argument
1535 err = fh_verify(rqstp, ffhp, S_IFDIR, NFSD_MAY_CREATE); in nfsd_link()
1538 err = fh_verify(rqstp, tfhp, 0, NFSD_MAY_NOP); in nfsd_link()
1577 if (host_err == -EXDEV && rqstp->rq_vers == 2) in nfsd_link()
1600 nfsd_rename(struct svc_rqst *rqstp, struct svc_fh *ffhp, char *fname, int flen, in nfsd_rename() argument
1608 err = fh_verify(rqstp, ffhp, S_IFDIR, NFSD_MAY_REMOVE); in nfsd_rename()
1611 err = fh_verify(rqstp, tfhp, S_IFDIR, NFSD_MAY_CREATE); in nfsd_rename()
1696 nfsd_unlink(struct svc_rqst *rqstp, struct svc_fh *fhp, int type, in nfsd_unlink() argument
1707 err = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_REMOVE); in nfsd_unlink()
1877 nfsd_readdir(struct svc_rqst *rqstp, struct svc_fh *fhp, loff_t *offsetp, in nfsd_readdir() argument
1886 if (rqstp->rq_vers > 2) in nfsd_readdir()
1889 err = nfsd_open(rqstp, fhp, S_IFDIR, may_flags, &file); in nfsd_readdir()
1914 nfsd_statfs(struct svc_rqst *rqstp, struct svc_fh *fhp, struct kstatfs *stat, int access) in nfsd_statfs() argument
1918 err = fh_verify(rqstp, fhp, 0, NFSD_MAY_NOP | access); in nfsd_statfs()
1930 static int exp_rdonly(struct svc_rqst *rqstp, struct svc_export *exp) in exp_rdonly() argument
1932 return nfsexp_flags(rqstp, exp) & NFSEXP_READONLY; in exp_rdonly()
1939 nfsd_permission(struct svc_rqst *rqstp, struct svc_export *exp, in nfsd_permission() argument
1971 if (exp_rdonly(rqstp, exp) || in nfsd_permission()