• Home
  • Raw
  • Download

Lines Matching refs:rqstp

96 check_attr_support(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,  in check_attr_support()  argument
118 nfsd4_check_open_attributes(struct svc_rqst *rqstp, in nfsd4_check_open_attributes() argument
126 status = check_attr_support(rqstp, cstate, in nfsd4_check_open_attributes()
129 status = check_attr_support(rqstp, cstate, in nfsd4_check_open_attributes()
150 do_set_nfs4_acl(struct svc_rqst *rqstp, struct svc_fh *fhp, in do_set_nfs4_acl() argument
155 status = nfsd4_set_nfs4_acl(rqstp, fhp, acl); in do_set_nfs4_acl()
176 do_open_permission(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open, int … in do_open_permission() argument
193 status = fh_verify(rqstp, current_fh, S_IFREG, accmode); in do_open_permission()
225 do_open_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open… in do_open_lookup() argument
258 status = do_nfsd_create(rqstp, current_fh, open->op_fname.data, in do_open_lookup()
283 status = nfsd_lookup(rqstp, current_fh, in do_open_lookup()
292 do_set_nfs4_acl(rqstp, *resfh, open->op_acl, open->op_bmval); in do_open_lookup()
299 status = do_open_permission(rqstp, *resfh, open, accmode); in do_open_lookup()
306 do_open_fhandle(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *ope… in do_open_fhandle() argument
334 status = do_open_permission(rqstp, current_fh, open, accmode); in do_open_fhandle()
350 nfsd4_open(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_open() argument
356 struct net *net = SVC_NET(rqstp); in nfsd4_open()
389 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); in nfsd4_open()
403 status = nfsd4_check_open_attributes(rqstp, cstate, open); in nfsd4_open()
419 status = do_open_lookup(rqstp, cstate, open, &resfh); in nfsd4_open()
433 status = do_open_fhandle(rqstp, cstate, open); in nfsd4_open()
455 status = nfsd4_process_open2(rqstp, resfh, open); in nfsd4_open()
478 static __be32 nfsd4_open_omfg(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct n… in nfsd4_open_omfg() argument
487 return nfsd4_open(rqstp, cstate, &op->u); in nfsd4_open_omfg()
494 nfsd4_getfh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_getfh() argument
502 nfsd4_putfh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_putfh() argument
511 return fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_BYPASS_GSS); in nfsd4_putfh()
515 nfsd4_putrootfh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_putrootfh() argument
521 status = exp_pseudoroot(rqstp, &cstate->current_fh); in nfsd4_putrootfh()
526 nfsd4_restorefh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_restorefh() argument
541 nfsd4_savefh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_savefh() argument
556 nfsd4_access(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_access() argument
565 return nfsd_access(rqstp, &cstate->current_fh, &access->ac_resp_access, in nfsd4_access()
579 nfsd4_commit(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_commit() argument
584 gen_boot_verifier(&commit->co_verf, SVC_NET(rqstp)); in nfsd4_commit()
585 return nfsd_commit(rqstp, &cstate->current_fh, commit->co_offset, in nfsd4_commit()
590 nfsd4_create(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_create() argument
600 status = fh_verify(rqstp, &cstate->current_fh, S_IFDIR, NFSD_MAY_NOP); in nfsd4_create()
604 status = check_attr_support(rqstp, cstate, create->cr_bmval, in nfsd4_create()
612 status = nfsd_symlink(rqstp, &cstate->current_fh, in nfsd4_create()
623 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
634 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
640 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
646 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
653 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
669 do_set_nfs4_acl(rqstp, &resfh, create->cr_acl, in nfsd4_create()
683 nfsd4_getattr(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_getattr() argument
689 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); in nfsd4_getattr()
705 nfsd4_link(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_link() argument
711 status = nfsd_link(rqstp, &cstate->current_fh, in nfsd4_link()
718 static __be32 nfsd4_do_lookupp(struct svc_rqst *rqstp, struct svc_fh *fh) in nfsd4_do_lookupp() argument
724 ret = exp_pseudoroot(rqstp, &tmp_fh); in nfsd4_do_lookupp()
732 return nfsd_lookup(rqstp, fh, "..", 2, fh); in nfsd4_do_lookupp()
736 nfsd4_lookupp(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_lookupp() argument
739 return nfsd4_do_lookupp(rqstp, &cstate->current_fh); in nfsd4_lookupp()
743 nfsd4_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_lookup() argument
746 return nfsd_lookup(rqstp, &cstate->current_fh, in nfsd4_lookup()
752 nfsd4_read(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_read() argument
762 trace_nfsd_read_start(rqstp, &cstate->current_fh, in nfsd4_read()
773 if (!nfsd4_last_compound_op(rqstp)) in nfsd4_read()
774 clear_bit(RQ_SPLICE_OK, &rqstp->rq_flags); in nfsd4_read()
777 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_read()
786 read->rd_rqstp = rqstp; in nfsd4_read()
802 nfsd4_readdir(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_readdir() argument
822 readdir->rd_rqstp = rqstp; in nfsd4_readdir()
828 nfsd4_readlink(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_readlink() argument
831 u->readlink.rl_rqstp = rqstp; in nfsd4_readlink()
837 nfsd4_remove(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_remove() argument
843 if (opens_in_grace(SVC_NET(rqstp))) in nfsd4_remove()
845 status = nfsd_unlink(rqstp, &cstate->current_fh, 0, in nfsd4_remove()
855 nfsd4_rename(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_rename() argument
861 if (opens_in_grace(SVC_NET(rqstp))) in nfsd4_rename()
863 status = nfsd_rename(rqstp, &cstate->save_fh, rename->rn_sname, in nfsd4_rename()
874 nfsd4_secinfo(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_secinfo() argument
882 err = fh_verify(rqstp, &cstate->current_fh, S_IFDIR, NFSD_MAY_EXEC); in nfsd4_secinfo()
885 err = nfsd_lookup_dentry(rqstp, &cstate->current_fh, in nfsd4_secinfo()
904 nfsd4_secinfo_no_name(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_secinfo_no_name() argument
913 err = nfsd4_do_lookupp(rqstp, &cstate->current_fh); in nfsd4_secinfo_no_name()
941 nfsd4_setattr(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_setattr() argument
949 status = nfs4_preprocess_stateid_op(rqstp, cstate, in nfsd4_setattr()
962 status = check_attr_support(rqstp, cstate, setattr->sa_bmval, in nfsd4_setattr()
968 status = nfsd4_set_nfs4_acl(rqstp, &cstate->current_fh, in nfsd4_setattr()
973 status = nfsd4_set_nfs4_label(rqstp, &cstate->current_fh, in nfsd4_setattr()
977 status = nfsd_setattr(rqstp, &cstate->current_fh, &setattr->sa_iattr, in nfsd4_setattr()
985 nfsd4_write(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_write() argument
1000 trace_nfsd_write_start(rqstp, &cstate->current_fh, in nfsd4_write()
1002 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_write()
1010 gen_boot_verifier(&write->wr_verifier, SVC_NET(rqstp)); in nfsd4_write()
1012 nvecs = svc_fill_write_vector(rqstp, write->wr_pagelist, in nfsd4_write()
1014 WARN_ON_ONCE(nvecs > ARRAY_SIZE(rqstp->rq_vec)); in nfsd4_write()
1016 status = nfsd_vfs_write(rqstp, &cstate->current_fh, nf->nf_file, in nfsd4_write()
1017 write->wr_offset, rqstp->rq_vec, nvecs, &cnt, in nfsd4_write()
1022 trace_nfsd_write_done(rqstp, &cstate->current_fh, in nfsd4_write()
1028 nfsd4_verify_copy(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_verify_copy() argument
1037 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->save_fh, in nfsd4_verify_copy()
1044 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_verify_copy()
1070 nfsd4_clone(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_clone() argument
1077 status = nfsd4_verify_copy(rqstp, cstate, &clone->cl_src_stateid, &src, in nfsd4_clone()
1258 nfsd4_copy(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_copy() argument
1265 status = nfsd4_verify_copy(rqstp, cstate, &copy->cp_src_stateid, in nfsd4_copy()
1275 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_copy()
1327 nfsd4_offload_cancel(struct svc_rqst *rqstp, in nfsd4_offload_cancel() argument
1346 nfsd4_fallocate(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_fallocate() argument
1352 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_fallocate()
1360 status = nfsd4_vfs_fallocate(rqstp, &cstate->current_fh, nf->nf_file, in nfsd4_fallocate()
1368 nfsd4_offload_status(struct svc_rqst *rqstp, in nfsd4_offload_status() argument
1388 nfsd4_allocate(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_allocate() argument
1391 return nfsd4_fallocate(rqstp, cstate, &u->allocate, 0); in nfsd4_allocate()
1395 nfsd4_deallocate(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_deallocate() argument
1398 return nfsd4_fallocate(rqstp, cstate, &u->deallocate, in nfsd4_deallocate()
1403 nfsd4_seek(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_seek() argument
1411 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_seek()
1452 _nfsd4_verify(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in _nfsd4_verify() argument
1459 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); in _nfsd4_verify()
1463 status = check_attr_support(rqstp, cstate, verify->ve_bmval, NULL); in _nfsd4_verify()
1486 rqstp, 0); in _nfsd4_verify()
1510 nfsd4_nverify(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_nverify() argument
1515 status = _nfsd4_verify(rqstp, cstate, &u->verify); in nfsd4_nverify()
1520 nfsd4_verify(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_verify() argument
1525 status = _nfsd4_verify(rqstp, cstate, &u->nverify); in nfsd4_verify()
1549 nfsd4_getdeviceinfo(struct svc_rqst *rqstp, in nfsd4_getdeviceinfo() argument
1571 exp = rqst_exp_find(rqstp, map->fsid_type, map->fsid); in nfsd4_getdeviceinfo()
1585 rqstp, cstate->session->se_client, gdp); in nfsd4_getdeviceinfo()
1601 nfsd4_layoutget(struct svc_rqst *rqstp, in nfsd4_layoutget() argument
1625 nfserr = fh_verify(rqstp, current_fh, 0, accmode); in nfsd4_layoutget()
1655 nfserr = nfsd4_preprocess_layout_stateid(rqstp, cstate, &lgp->lg_sid, in nfsd4_layoutget()
1687 nfsd4_layoutcommit(struct svc_rqst *rqstp, in nfsd4_layoutcommit() argument
1699 nfserr = fh_verify(rqstp, current_fh, 0, NFSD_MAY_WRITE); in nfsd4_layoutcommit()
1723 nfserr = nfsd4_preprocess_layout_stateid(rqstp, cstate, &lcp->lc_sid, in nfsd4_layoutcommit()
1751 nfsd4_layoutreturn(struct svc_rqst *rqstp, in nfsd4_layoutreturn() argument
1758 nfserr = fh_verify(rqstp, current_fh, 0, NFSD_MAY_NOP); in nfsd4_layoutreturn()
1780 nfserr = nfsd4_return_file_layouts(rqstp, cstate, lrp); in nfsd4_layoutreturn()
1784 nfserr = nfsd4_return_client_layouts(rqstp, cstate, lrp); in nfsd4_layoutreturn()
1801 nfsd4_proc_null(struct svc_rqst *rqstp) in nfsd4_proc_null() argument
1866 static bool need_wrongsec_check(struct svc_rqst *rqstp) in need_wrongsec_check() argument
1868 struct nfsd4_compoundres *resp = rqstp->rq_resp; in need_wrongsec_check()
1869 struct nfsd4_compoundargs *argp = rqstp->rq_argp; in need_wrongsec_check()
1899 static void svcxdr_init_encode(struct svc_rqst *rqstp, in svcxdr_init_encode() argument
1903 struct xdr_buf *buf = &rqstp->rq_res; in svcxdr_init_encode()
1909 xdr->end = head->iov_base + PAGE_SIZE - rqstp->rq_auth_slack; in svcxdr_init_encode()
1914 buf->buflen = PAGE_SIZE * (1 + rqstp->rq_page_end - buf->pages) in svcxdr_init_encode()
1915 - rqstp->rq_auth_slack; in svcxdr_init_encode()
1922 nfsd4_proc_compound(struct svc_rqst *rqstp) in nfsd4_proc_compound() argument
1924 struct nfsd4_compoundargs *args = rqstp->rq_argp; in nfsd4_proc_compound()
1925 struct nfsd4_compoundres *resp = rqstp->rq_resp; in nfsd4_proc_compound()
1930 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd4_proc_compound()
1933 svcxdr_init_encode(rqstp, resp); in nfsd4_proc_compound()
1939 resp->rqstp = rqstp; in nfsd4_proc_compound()
1947 clear_bit(RQ_USEDEFERRAL, &rqstp->rq_flags); in nfsd4_proc_compound()
1967 trace_nfsd_compound(rqstp, args->opcnt); in nfsd4_proc_compound()
1978 op->status = nfsd4_open_omfg(rqstp, cstate, op); in nfsd4_proc_compound()
2001 u32 plen = op->opdesc->op_rsize_bop(rqstp, op); in nfsd4_proc_compound()
2016 op->status = op->opdesc->op_func(rqstp, cstate, &op->u); in nfsd4_proc_compound()
2031 if (need_wrongsec_check(rqstp)) in nfsd4_proc_compound()
2032 op->status = check_nfsd_access(current_fh->fh_export, rqstp); in nfsd4_proc_compound()
2057 set_bit(RQ_USEDEFERRAL, &rqstp->rq_flags); in nfsd4_proc_compound()
2080 static inline u32 nfsd4_only_status_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_only_status_rsize() argument
2085 static inline u32 nfsd4_status_stateid_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_status_stateid_rsize() argument
2090 static inline u32 nfsd4_access_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_access_rsize() argument
2096 static inline u32 nfsd4_commit_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_commit_rsize() argument
2101 static inline u32 nfsd4_create_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_create_rsize() argument
2112 static inline u32 nfsd4_getattr_rsize(struct svc_rqst *rqstp, in nfsd4_getattr_rsize() argument
2120 return svc_max_payload(rqstp); in nfsd4_getattr_rsize()
2122 return svc_max_payload(rqstp); in nfsd4_getattr_rsize()
2150 static inline u32 nfsd4_getfh_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_getfh_rsize() argument
2155 static inline u32 nfsd4_link_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_link_rsize() argument
2161 static inline u32 nfsd4_lock_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_lock_rsize() argument
2167 static inline u32 nfsd4_open_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_open_rsize() argument
2175 static inline u32 nfsd4_read_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_read_rsize() argument
2179 maxcount = svc_max_payload(rqstp); in nfsd4_read_rsize()
2185 static inline u32 nfsd4_readdir_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_readdir_rsize() argument
2189 maxcount = svc_max_payload(rqstp); in nfsd4_readdir_rsize()
2196 static inline u32 nfsd4_readlink_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_readlink_rsize() argument
2201 static inline u32 nfsd4_remove_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_remove_rsize() argument
2207 static inline u32 nfsd4_rename_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_rename_rsize() argument
2213 static inline u32 nfsd4_sequence_rsize(struct svc_rqst *rqstp, in nfsd4_sequence_rsize() argument
2220 static inline u32 nfsd4_test_stateid_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_test_stateid_rsize() argument
2226 static inline u32 nfsd4_setattr_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_setattr_rsize() argument
2231 static inline u32 nfsd4_secinfo_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_secinfo_rsize() argument
2237 static inline u32 nfsd4_setclientid_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_setclientid_rsize() argument
2243 static inline u32 nfsd4_write_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_write_rsize() argument
2248 static inline u32 nfsd4_exchange_id_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_exchange_id_rsize() argument
2262 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
2269 static inline u32 nfsd4_create_session_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_create_session_rsize() argument
2278 static inline u32 nfsd4_copy_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_copy_rsize() argument
2290 static inline u32 nfsd4_offload_status_rsize(struct svc_rqst *rqstp, in nfsd4_offload_status_rsize() argument
2299 static inline u32 nfsd4_getdeviceinfo_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_getdeviceinfo_rsize() argument
2303 maxcount = svc_max_payload(rqstp); in nfsd4_getdeviceinfo_rsize()
2317 static inline u32 nfsd4_layoutget_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_layoutget_rsize() argument
2326 static inline u32 nfsd4_layoutcommit_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_layoutcommit_rsize() argument
2333 static inline u32 nfsd4_layoutreturn_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_layoutreturn_rsize() argument
2342 static inline u32 nfsd4_seek_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_seek_rsize() argument
2734 bool nfsd4_spo_must_allow(struct svc_rqst *rqstp) in nfsd4_spo_must_allow() argument
2736 struct nfsd4_compoundres *resp = rqstp->rq_resp; in nfsd4_spo_must_allow()
2737 struct nfsd4_compoundargs *argp = rqstp->rq_argp; in nfsd4_spo_must_allow()
2754 nfsd4_mach_creds_match(cstate->clp, rqstp)) { in nfsd4_spo_must_allow()
2763 int nfsd4_max_reply(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_max_reply() argument
2769 return OPDESC(op)->op_rsize_bop(rqstp, op); in nfsd4_max_reply()