• Home
  • Raw
  • Download

Lines Matching refs:op

478 …2 nfsd4_open_omfg(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_op *op)  in nfsd4_open_omfg()  argument
480 struct nfsd4_open *open = &op->u.open; in nfsd4_open_omfg()
482 if (!seqid_mutating_err(ntohl(op->status))) in nfsd4_open_omfg()
483 return op->status; in nfsd4_open_omfg()
485 return op->status; in nfsd4_open_omfg()
486 open->op_xdr_error = op->status; in nfsd4_open_omfg()
487 return nfsd4_open(rqstp, cstate, &op->u); in nfsd4_open_omfg()
1851 const struct nfsd4_operation *OPDESC(struct nfsd4_op *op) in OPDESC() argument
1853 return &nfsd4_ops[op->opnum]; in OPDESC()
1856 bool nfsd4_cache_this_op(struct nfsd4_op *op) in nfsd4_cache_this_op() argument
1858 if (op->opnum == OP_ILLEGAL) in nfsd4_cache_this_op()
1860 return OPDESC(op)->op_flags & OP_CACHEME; in nfsd4_cache_this_op()
1923 struct nfsd4_op *op; in nfsd4_proc_compound() local
1958 op = &args->ops[0]; in nfsd4_proc_compound()
1959 op->status = status; in nfsd4_proc_compound()
1966 op = &args->ops[resp->opcnt++]; in nfsd4_proc_compound()
1973 if (op->status) { in nfsd4_proc_compound()
1974 if (op->opnum == OP_OPEN) in nfsd4_proc_compound()
1975 op->status = nfsd4_open_omfg(rqstp, cstate, op); in nfsd4_proc_compound()
1980 if (!(op->opdesc->op_flags & ALLOWED_WITHOUT_FH)) { in nfsd4_proc_compound()
1981 op->status = nfserr_nofilehandle; in nfsd4_proc_compound()
1985 !(op->opdesc->op_flags & ALLOWED_ON_ABSENT_FS)) { in nfsd4_proc_compound()
1986 op->status = nfserr_moved; in nfsd4_proc_compound()
1993 if (op->opdesc->op_flags & OP_MODIFIES_SOMETHING) { in nfsd4_proc_compound()
1998 u32 plen = op->opdesc->op_rsize_bop(rqstp, op); in nfsd4_proc_compound()
2005 op->status = nfsd4_check_resp_size(resp, plen); in nfsd4_proc_compound()
2008 if (op->status) in nfsd4_proc_compound()
2011 if (op->opdesc->op_get_currentstateid) in nfsd4_proc_compound()
2012 op->opdesc->op_get_currentstateid(cstate, &op->u); in nfsd4_proc_compound()
2013 op->status = op->opdesc->op_func(rqstp, cstate, &op->u); in nfsd4_proc_compound()
2018 status = op->status; in nfsd4_proc_compound()
2021 if (!op->status) { in nfsd4_proc_compound()
2022 if (op->opdesc->op_set_currentstateid) in nfsd4_proc_compound()
2023 op->opdesc->op_set_currentstateid(cstate, &op->u); in nfsd4_proc_compound()
2025 if (op->opdesc->op_flags & OP_CLEAR_STATEID) in nfsd4_proc_compound()
2029 op->status = check_nfsd_access(current_fh->fh_export, rqstp); in nfsd4_proc_compound()
2032 if (op->status == nfserr_replay_me) { in nfsd4_proc_compound()
2033 op->replay = &cstate->replay_owner->so_replay; in nfsd4_proc_compound()
2034 nfsd4_encode_replay(&resp->xdr, op); in nfsd4_proc_compound()
2035 status = op->status = op->replay->rp_status; in nfsd4_proc_compound()
2037 nfsd4_encode_operation(resp, op); in nfsd4_proc_compound()
2038 status = op->status; in nfsd4_proc_compound()
2042 nfsd4_op_name(op->opnum)); in nfsd4_proc_compound()
2045 nfsd4_increment_op_stats(op->opnum); in nfsd4_proc_compound()
2077 static inline u32 nfsd4_only_status_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_only_status_rsize() argument
2082 static inline u32 nfsd4_status_stateid_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_status_stateid_rsize() argument
2087 static inline u32 nfsd4_access_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_access_rsize() argument
2093 static inline u32 nfsd4_commit_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_commit_rsize() argument
2098 static inline u32 nfsd4_create_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_create_rsize() argument
2110 struct nfsd4_op *op) in nfsd4_getattr_rsize() argument
2112 u32 *bmap = op->u.getattr.ga_bmval; in nfsd4_getattr_rsize()
2147 static inline u32 nfsd4_getfh_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_getfh_rsize() argument
2152 static inline u32 nfsd4_link_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_link_rsize() argument
2158 static inline u32 nfsd4_lock_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_lock_rsize() argument
2164 static inline u32 nfsd4_open_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_open_rsize() argument
2172 static inline u32 nfsd4_read_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_read_rsize() argument
2177 rlen = min(op->u.read.rd_length, maxcount); in nfsd4_read_rsize()
2182 static inline u32 nfsd4_readdir_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_readdir_rsize() argument
2187 rlen = min(op->u.readdir.rd_maxcount, maxcount); in nfsd4_readdir_rsize()
2193 static inline u32 nfsd4_readlink_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_readlink_rsize() argument
2198 static inline u32 nfsd4_remove_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_remove_rsize() argument
2204 static inline u32 nfsd4_rename_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_rename_rsize() argument
2211 struct nfsd4_op *op) in nfsd4_sequence_rsize() argument
2217 static inline u32 nfsd4_test_stateid_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_test_stateid_rsize() argument
2219 return (op_encode_hdr_size + 1 + op->u.test_stateid.ts_num_ids) in nfsd4_test_stateid_rsize()
2223 static inline u32 nfsd4_setattr_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_setattr_rsize() argument
2228 static inline u32 nfsd4_secinfo_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_secinfo_rsize() argument
2234 static inline u32 nfsd4_setclientid_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_setclientid_rsize() argument
2240 static inline u32 nfsd4_write_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_write_rsize() argument
2245 static inline u32 nfsd4_exchange_id_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_exchange_id_rsize() argument
2259 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
2266 static inline u32 nfsd4_create_session_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_create_session_rsize() argument
2275 static inline u32 nfsd4_copy_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_copy_rsize() argument
2288 struct nfsd4_op *op) in nfsd4_offload_status_rsize() argument
2296 static inline u32 nfsd4_getdeviceinfo_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_getdeviceinfo_rsize() argument
2301 rlen = min(op->u.getdeviceinfo.gd_maxcount, maxcount); in nfsd4_getdeviceinfo_rsize()
2314 static inline u32 nfsd4_layoutget_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_layoutget_rsize() argument
2323 static inline u32 nfsd4_layoutcommit_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_layoutcommit_rsize() argument
2330 static inline u32 nfsd4_layoutreturn_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_layoutreturn_rsize() argument
2339 static inline u32 nfsd4_seek_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_seek_rsize() argument
2760 int nfsd4_max_reply(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_max_reply() argument
2762 if (op->opnum == OP_ILLEGAL || op->status == nfserr_notsupp) in nfsd4_max_reply()
2765 BUG_ON(OPDESC(op)->op_rsize_bop == NULL); in nfsd4_max_reply()
2766 return OPDESC(op)->op_rsize_bop(rqstp, op); in nfsd4_max_reply()
2769 void warn_on_nonidempotent_op(struct nfsd4_op *op) in warn_on_nonidempotent_op() argument
2771 if (OPDESC(op)->op_flags & OP_MODIFIES_SOMETHING) { in warn_on_nonidempotent_op()
2773 op->opnum, nfsd4_op_name(op->opnum)); in warn_on_nonidempotent_op()