Lines Matching refs:rqstp

94 check_attr_support(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,  in check_attr_support()  argument
130 nfsd4_check_open_attributes(struct svc_rqst *rqstp, in nfsd4_check_open_attributes() argument
138 status = check_attr_support(rqstp, cstate, in nfsd4_check_open_attributes()
141 status = check_attr_support(rqstp, cstate, in nfsd4_check_open_attributes()
162 do_set_nfs4_acl(struct svc_rqst *rqstp, struct svc_fh *fhp, in do_set_nfs4_acl() argument
167 status = nfsd4_set_nfs4_acl(rqstp, fhp, acl); in do_set_nfs4_acl()
188 do_open_permission(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open, int … in do_open_permission() argument
205 status = fh_verify(rqstp, current_fh, S_IFREG, accmode); in do_open_permission()
237 do_open_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open… in do_open_lookup() argument
269 status = do_nfsd_create(rqstp, current_fh, open->op_fname.data, in do_open_lookup()
293 status = nfsd_lookup(rqstp, current_fh, in do_open_lookup()
302 do_set_nfs4_acl(rqstp, *resfh, open->op_acl, open->op_bmval); in do_open_lookup()
309 status = do_open_permission(rqstp, *resfh, open, accmode); in do_open_lookup()
316 do_open_fhandle(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *ope… in do_open_fhandle() argument
344 status = do_open_permission(rqstp, current_fh, open, accmode); in do_open_fhandle()
360 nfsd4_open(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_open() argument
366 struct net *net = SVC_NET(rqstp); in nfsd4_open()
392 resp = rqstp->rq_resp; in nfsd4_open()
399 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); in nfsd4_open()
413 status = nfsd4_check_open_attributes(rqstp, cstate, open); in nfsd4_open()
429 status = do_open_lookup(rqstp, cstate, open, &resfh); in nfsd4_open()
441 status = do_open_fhandle(rqstp, cstate, open); in nfsd4_open()
463 status = nfsd4_process_open2(rqstp, resfh, open); in nfsd4_open()
484 static __be32 nfsd4_open_omfg(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct n… in nfsd4_open_omfg() argument
493 return nfsd4_open(rqstp, cstate, open); in nfsd4_open_omfg()
500 nfsd4_getfh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_getfh() argument
511 nfsd4_putfh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_putfh() argument
518 return fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_BYPASS_GSS); in nfsd4_putfh()
522 nfsd4_putrootfh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_putrootfh() argument
528 status = exp_pseudoroot(rqstp, &cstate->current_fh); in nfsd4_putrootfh()
533 nfsd4_restorefh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_restorefh() argument
548 nfsd4_savefh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_savefh() argument
566 nfsd4_access(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_access() argument
573 return nfsd_access(rqstp, &cstate->current_fh, &access->ac_resp_access, in nfsd4_access()
592 nfsd4_commit(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_commit() argument
595 gen_boot_verifier(&commit->co_verf, SVC_NET(rqstp)); in nfsd4_commit()
596 return nfsd_commit(rqstp, &cstate->current_fh, commit->co_offset, in nfsd4_commit()
601 nfsd4_create(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_create() argument
610 status = fh_verify(rqstp, &cstate->current_fh, S_IFDIR, in nfsd4_create()
615 status = check_attr_support(rqstp, cstate, create->cr_bmval, in nfsd4_create()
622 status = nfsd_symlink(rqstp, &cstate->current_fh, in nfsd4_create()
632 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
642 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
648 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
654 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
661 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
677 do_set_nfs4_acl(rqstp, &resfh, create->cr_acl, in nfsd4_create()
689 nfsd4_getattr(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_getattr() argument
694 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); in nfsd4_getattr()
710 nfsd4_link(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_link() argument
717 status = nfsd_link(rqstp, &cstate->current_fh, in nfsd4_link()
724 static __be32 nfsd4_do_lookupp(struct svc_rqst *rqstp, struct svc_fh *fh) in nfsd4_do_lookupp() argument
730 ret = exp_pseudoroot(rqstp, &tmp_fh); in nfsd4_do_lookupp()
738 return nfsd_lookup(rqstp, fh, "..", 2, fh); in nfsd4_do_lookupp()
742 nfsd4_lookupp(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_lookupp() argument
745 return nfsd4_do_lookupp(rqstp, &cstate->current_fh); in nfsd4_lookupp()
749 nfsd4_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_lookup() argument
752 return nfsd_lookup(rqstp, &cstate->current_fh, in nfsd4_lookup()
758 nfsd4_read(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_read() argument
777 if (!nfsd4_last_compound_op(rqstp)) in nfsd4_read()
778 clear_bit(RQ_SPLICE_OK, &rqstp->rq_flags); in nfsd4_read()
781 if ((status = nfs4_preprocess_stateid_op(SVC_NET(rqstp), in nfsd4_read()
789 read->rd_rqstp = rqstp; in nfsd4_read()
795 nfsd4_readdir(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_readdir() argument
814 readdir->rd_rqstp = rqstp; in nfsd4_readdir()
820 nfsd4_readlink(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_readlink() argument
823 readlink->rl_rqstp = rqstp; in nfsd4_readlink()
829 nfsd4_remove(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_remove() argument
834 if (locks_in_grace(SVC_NET(rqstp))) in nfsd4_remove()
836 status = nfsd_unlink(rqstp, &cstate->current_fh, 0, in nfsd4_remove()
846 nfsd4_rename(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_rename() argument
853 if (locks_in_grace(SVC_NET(rqstp)) && in nfsd4_rename()
856 status = nfsd_rename(rqstp, &cstate->save_fh, rename->rn_sname, in nfsd4_rename()
867 nfsd4_secinfo(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_secinfo() argument
876 err = fh_verify(rqstp, &cstate->current_fh, S_IFDIR, NFSD_MAY_EXEC); in nfsd4_secinfo()
879 err = nfsd_lookup_dentry(rqstp, &cstate->current_fh, in nfsd4_secinfo()
898 nfsd4_secinfo_no_name(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_secinfo_no_name() argument
907 err = nfsd4_do_lookupp(rqstp, &cstate->current_fh); in nfsd4_secinfo_no_name()
921 nfsd4_setattr(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_setattr() argument
928 status = nfs4_preprocess_stateid_op(SVC_NET(rqstp), cstate, in nfsd4_setattr()
940 status = check_attr_support(rqstp, cstate, setattr->sa_bmval, in nfsd4_setattr()
946 status = nfsd4_set_nfs4_acl(rqstp, &cstate->current_fh, in nfsd4_setattr()
951 status = nfsd4_set_nfs4_label(rqstp, &cstate->current_fh, in nfsd4_setattr()
955 status = nfsd_setattr(rqstp, &cstate->current_fh, &setattr->sa_iattr, in nfsd4_setattr()
981 nfsd4_write(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_write() argument
995 status = nfs4_preprocess_stateid_op(SVC_NET(rqstp), in nfsd4_write()
1004 gen_boot_verifier(&write->wr_verifier, SVC_NET(rqstp)); in nfsd4_write()
1006 nvecs = fill_in_write_vector(rqstp->rq_vec, write); in nfsd4_write()
1007 WARN_ON_ONCE(nvecs > ARRAY_SIZE(rqstp->rq_vec)); in nfsd4_write()
1009 status = nfsd_write(rqstp, &cstate->current_fh, filp, in nfsd4_write()
1010 write->wr_offset, rqstp->rq_vec, nvecs, in nfsd4_write()
1021 nfsd4_fallocate(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_fallocate() argument
1027 status = nfs4_preprocess_stateid_op(SVC_NET(rqstp), cstate, in nfsd4_fallocate()
1037 status = nfsd4_vfs_fallocate(rqstp, &cstate->current_fh, file, in nfsd4_fallocate()
1046 nfsd4_allocate(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_allocate() argument
1049 return nfsd4_fallocate(rqstp, cstate, fallocate, 0); in nfsd4_allocate()
1053 nfsd4_deallocate(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_deallocate() argument
1056 return nfsd4_fallocate(rqstp, cstate, fallocate, in nfsd4_deallocate()
1061 nfsd4_seek(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_seek() argument
1068 status = nfs4_preprocess_stateid_op(SVC_NET(rqstp), cstate, in nfsd4_seek()
1111 _nfsd4_verify(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in _nfsd4_verify() argument
1118 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); in _nfsd4_verify()
1122 status = check_attr_support(rqstp, cstate, verify->ve_bmval, NULL); in _nfsd4_verify()
1145 rqstp, 0); in _nfsd4_verify()
1169 nfsd4_nverify(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_nverify() argument
1174 status = _nfsd4_verify(rqstp, cstate, verify); in nfsd4_nverify()
1179 nfsd4_verify(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_verify() argument
1184 status = _nfsd4_verify(rqstp, cstate, verify); in nfsd4_verify()
1207 nfsd4_getdeviceinfo(struct svc_rqst *rqstp, in nfsd4_getdeviceinfo() argument
1229 exp = rqst_exp_find(rqstp, map->fsid_type, map->fsid); in nfsd4_getdeviceinfo()
1251 nfsd4_layoutget(struct svc_rqst *rqstp, in nfsd4_layoutget() argument
1275 nfserr = fh_verify(rqstp, current_fh, 0, accmode); in nfsd4_layoutget()
1305 nfserr = nfsd4_preprocess_layout_stateid(rqstp, cstate, &lgp->lg_sid, in nfsd4_layoutget()
1330 nfsd4_layoutcommit(struct svc_rqst *rqstp, in nfsd4_layoutcommit() argument
1342 nfserr = fh_verify(rqstp, current_fh, 0, NFSD_MAY_WRITE); in nfsd4_layoutcommit()
1366 nfserr = nfsd4_preprocess_layout_stateid(rqstp, cstate, &lcp->lc_sid, in nfsd4_layoutcommit()
1395 nfsd4_layoutreturn(struct svc_rqst *rqstp, in nfsd4_layoutreturn() argument
1402 nfserr = fh_verify(rqstp, current_fh, 0, NFSD_MAY_NOP); in nfsd4_layoutreturn()
1424 nfserr = nfsd4_return_file_layouts(rqstp, cstate, lrp); in nfsd4_layoutreturn()
1428 nfserr = nfsd4_return_client_layouts(rqstp, cstate, lrp); in nfsd4_layoutreturn()
1445 nfsd4_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) in nfsd4_proc_null() argument
1551 static bool need_wrongsec_check(struct svc_rqst *rqstp) in need_wrongsec_check() argument
1553 struct nfsd4_compoundres *resp = rqstp->rq_resp; in need_wrongsec_check()
1554 struct nfsd4_compoundargs *argp = rqstp->rq_argp; in need_wrongsec_check()
1585 static void svcxdr_init_encode(struct svc_rqst *rqstp, in svcxdr_init_encode() argument
1589 struct xdr_buf *buf = &rqstp->rq_res; in svcxdr_init_encode()
1595 xdr->end = head->iov_base + PAGE_SIZE - rqstp->rq_auth_slack; in svcxdr_init_encode()
1600 buf->buflen = PAGE_SIZE * (1 + rqstp->rq_page_end - buf->pages) in svcxdr_init_encode()
1601 - rqstp->rq_auth_slack; in svcxdr_init_encode()
1608 nfsd4_proc_compound(struct svc_rqst *rqstp, in nfsd4_proc_compound() argument
1619 svcxdr_init_encode(rqstp, resp); in nfsd4_proc_compound()
1625 resp->rqstp = rqstp; in nfsd4_proc_compound()
1633 clear_bit(RQ_USEDEFERRAL, &rqstp->rq_flags); in nfsd4_proc_compound()
1662 op->status = nfsd4_open_omfg(rqstp, cstate, op); in nfsd4_proc_compound()
1687 u32 plen = opdesc->op_rsize_bop(rqstp, op); in nfsd4_proc_compound()
1702 op->status = opdesc->op_func(rqstp, cstate, &op->u); in nfsd4_proc_compound()
1711 if (need_wrongsec_check(rqstp)) in nfsd4_proc_compound()
1712 op->status = check_nfsd_access(current_fh->fh_export, rqstp); in nfsd4_proc_compound()
1749 set_bit(RQ_USEDEFERRAL, &rqstp->rq_flags); in nfsd4_proc_compound()
1772 static inline u32 nfsd4_only_status_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_only_status_rsize() argument
1777 static inline u32 nfsd4_status_stateid_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_status_stateid_rsize() argument
1782 static inline u32 nfsd4_commit_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_commit_rsize() argument
1787 static inline u32 nfsd4_create_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_create_rsize() argument
1798 static inline u32 nfsd4_getattr_rsize(struct svc_rqst *rqstp, in nfsd4_getattr_rsize() argument
1806 return svc_max_payload(rqstp); in nfsd4_getattr_rsize()
1808 return svc_max_payload(rqstp); in nfsd4_getattr_rsize()
1836 static inline u32 nfsd4_link_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_link_rsize() argument
1842 static inline u32 nfsd4_lock_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_lock_rsize() argument
1848 static inline u32 nfsd4_open_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_open_rsize() argument
1856 static inline u32 nfsd4_read_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_read_rsize() argument
1860 maxcount = svc_max_payload(rqstp); in nfsd4_read_rsize()
1866 static inline u32 nfsd4_readdir_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_readdir_rsize() argument
1870 maxcount = svc_max_payload(rqstp); in nfsd4_readdir_rsize()
1877 static inline u32 nfsd4_remove_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_remove_rsize() argument
1883 static inline u32 nfsd4_rename_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_rename_rsize() argument
1889 static inline u32 nfsd4_sequence_rsize(struct svc_rqst *rqstp, in nfsd4_sequence_rsize() argument
1896 static inline u32 nfsd4_setattr_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_setattr_rsize() argument
1901 static inline u32 nfsd4_setclientid_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_setclientid_rsize() argument
1907 static inline u32 nfsd4_write_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_write_rsize() argument
1912 static inline u32 nfsd4_exchange_id_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_exchange_id_rsize() argument
1926 static inline u32 nfsd4_bind_conn_to_session_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_bind_conn_to_session_rsize() argument
1933 static inline u32 nfsd4_create_session_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_create_session_rsize() argument
1948 static inline u32 nfsd4_layoutget_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_layoutget_rsize() argument
1957 static inline u32 nfsd4_layoutcommit_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_layoutcommit_rsize() argument
1964 static inline u32 nfsd4_layoutreturn_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_layoutreturn_rsize() argument
2304 int nfsd4_max_reply(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_max_reply() argument
2313 return estimator ? estimator(rqstp, op) : PAGE_SIZE; in nfsd4_max_reply()