Lines Matching refs:op
472 …2 nfsd4_open_omfg(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_op *op) in nfsd4_open_omfg() argument
474 struct nfsd4_open *open = &op->u.open; in nfsd4_open_omfg()
476 if (!seqid_mutating_err(ntohl(op->status))) in nfsd4_open_omfg()
477 return op->status; in nfsd4_open_omfg()
479 return op->status; in nfsd4_open_omfg()
480 open->op_xdr_error = op->status; in nfsd4_open_omfg()
481 return nfsd4_open(rqstp, cstate, &op->u); in nfsd4_open_omfg()
1607 struct nfsd4_op *op = &args->ops[0]; in nfs41_check_op_ordering() local
1615 if (op->status == nfserr_op_illegal) in nfs41_check_op_ordering()
1617 if (!(nfsd4_ops[op->opnum].op_flags & ALLOWED_AS_FIRST_OP)) in nfs41_check_op_ordering()
1619 if (op->opnum == OP_SEQUENCE) in nfs41_check_op_ordering()
1626 const struct nfsd4_operation *OPDESC(struct nfsd4_op *op) in OPDESC() argument
1628 return &nfsd4_ops[op->opnum]; in OPDESC()
1631 bool nfsd4_cache_this_op(struct nfsd4_op *op) in nfsd4_cache_this_op() argument
1633 if (op->opnum == OP_ILLEGAL) in nfsd4_cache_this_op()
1635 return OPDESC(op)->op_flags & OP_CACHEME; in nfsd4_cache_this_op()
1698 struct nfsd4_op *op; in nfsd4_proc_compound() local
1729 op = &args->ops[0]; in nfsd4_proc_compound()
1730 op->status = status; in nfsd4_proc_compound()
1736 op = &args->ops[resp->opcnt++]; in nfsd4_proc_compound()
1739 resp->opcnt, args->opcnt, op->opnum, in nfsd4_proc_compound()
1740 nfsd4_op_name(op->opnum)); in nfsd4_proc_compound()
1746 if (op->status) { in nfsd4_proc_compound()
1747 if (op->opnum == OP_OPEN) in nfsd4_proc_compound()
1748 op->status = nfsd4_open_omfg(rqstp, cstate, op); in nfsd4_proc_compound()
1753 if (!(op->opdesc->op_flags & ALLOWED_WITHOUT_FH)) { in nfsd4_proc_compound()
1754 op->status = nfserr_nofilehandle; in nfsd4_proc_compound()
1758 !(op->opdesc->op_flags & ALLOWED_ON_ABSENT_FS)) { in nfsd4_proc_compound()
1759 op->status = nfserr_moved; in nfsd4_proc_compound()
1766 if (op->opdesc->op_flags & OP_MODIFIES_SOMETHING) { in nfsd4_proc_compound()
1771 u32 plen = op->opdesc->op_rsize_bop(rqstp, op); in nfsd4_proc_compound()
1778 op->status = nfsd4_check_resp_size(resp, plen); in nfsd4_proc_compound()
1781 if (op->status) in nfsd4_proc_compound()
1784 if (op->opdesc->op_get_currentstateid) in nfsd4_proc_compound()
1785 op->opdesc->op_get_currentstateid(cstate, &op->u); in nfsd4_proc_compound()
1786 op->status = op->opdesc->op_func(rqstp, cstate, &op->u); in nfsd4_proc_compound()
1791 status = op->status; in nfsd4_proc_compound()
1794 if (!op->status) { in nfsd4_proc_compound()
1795 if (op->opdesc->op_set_currentstateid) in nfsd4_proc_compound()
1796 op->opdesc->op_set_currentstateid(cstate, &op->u); in nfsd4_proc_compound()
1798 if (op->opdesc->op_flags & OP_CLEAR_STATEID) in nfsd4_proc_compound()
1802 op->status = check_nfsd_access(current_fh->fh_export, rqstp); in nfsd4_proc_compound()
1805 if (op->status == nfserr_replay_me) { in nfsd4_proc_compound()
1806 op->replay = &cstate->replay_owner->so_replay; in nfsd4_proc_compound()
1807 nfsd4_encode_replay(&resp->xdr, op); in nfsd4_proc_compound()
1808 status = op->status = op->replay->rp_status; in nfsd4_proc_compound()
1810 nfsd4_encode_operation(resp, op); in nfsd4_proc_compound()
1811 status = op->status; in nfsd4_proc_compound()
1815 args->ops, args->opcnt, resp->opcnt, op->opnum, in nfsd4_proc_compound()
1819 nfsd4_increment_op_stats(op->opnum); in nfsd4_proc_compound()
1851 static inline u32 nfsd4_only_status_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_only_status_rsize() argument
1856 static inline u32 nfsd4_status_stateid_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_status_stateid_rsize() argument
1861 static inline u32 nfsd4_access_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_access_rsize() argument
1867 static inline u32 nfsd4_commit_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_commit_rsize() argument
1872 static inline u32 nfsd4_create_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_create_rsize() argument
1884 struct nfsd4_op *op) in nfsd4_getattr_rsize() argument
1886 u32 *bmap = op->u.getattr.ga_bmval; in nfsd4_getattr_rsize()
1921 static inline u32 nfsd4_getfh_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_getfh_rsize() argument
1926 static inline u32 nfsd4_link_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_link_rsize() argument
1932 static inline u32 nfsd4_lock_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_lock_rsize() argument
1938 static inline u32 nfsd4_open_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_open_rsize() argument
1946 static inline u32 nfsd4_read_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_read_rsize() argument
1951 rlen = min(op->u.read.rd_length, maxcount); in nfsd4_read_rsize()
1956 static inline u32 nfsd4_readdir_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_readdir_rsize() argument
1961 rlen = min(op->u.readdir.rd_maxcount, maxcount); in nfsd4_readdir_rsize()
1967 static inline u32 nfsd4_readlink_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_readlink_rsize() argument
1972 static inline u32 nfsd4_remove_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_remove_rsize() argument
1978 static inline u32 nfsd4_rename_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_rename_rsize() argument
1985 struct nfsd4_op *op) in nfsd4_sequence_rsize() argument
1991 static inline u32 nfsd4_test_stateid_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_test_stateid_rsize() argument
1993 return (op_encode_hdr_size + 1 + op->u.test_stateid.ts_num_ids) in nfsd4_test_stateid_rsize()
1997 static inline u32 nfsd4_setattr_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_setattr_rsize() argument
2002 static inline u32 nfsd4_secinfo_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_secinfo_rsize() argument
2008 static inline u32 nfsd4_setclientid_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_setclientid_rsize() argument
2014 static inline u32 nfsd4_write_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_write_rsize() argument
2019 static inline u32 nfsd4_exchange_id_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_exchange_id_rsize() argument
2033 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
2040 static inline u32 nfsd4_create_session_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_create_session_rsize() argument
2049 static inline u32 nfsd4_copy_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_copy_rsize() argument
2062 static inline u32 nfsd4_getdeviceinfo_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_getdeviceinfo_rsize() argument
2067 rlen = min(op->u.getdeviceinfo.gd_maxcount, maxcount); in nfsd4_getdeviceinfo_rsize()
2080 static inline u32 nfsd4_layoutget_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_layoutget_rsize() argument
2089 static inline u32 nfsd4_layoutcommit_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_layoutcommit_rsize() argument
2096 static inline u32 nfsd4_layoutreturn_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_layoutreturn_rsize() argument
2105 static inline u32 nfsd4_seek_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_seek_rsize() argument
2515 int nfsd4_max_reply(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_max_reply() argument
2517 if (op->opnum == OP_ILLEGAL || op->status == nfserr_notsupp) in nfsd4_max_reply()
2520 BUG_ON(OPDESC(op)->op_rsize_bop == NULL); in nfsd4_max_reply()
2521 return OPDESC(op)->op_rsize_bop(rqstp, op); in nfsd4_max_reply()
2524 void warn_on_nonidempotent_op(struct nfsd4_op *op) in warn_on_nonidempotent_op() argument
2526 if (OPDESC(op)->op_flags & OP_MODIFIES_SOMETHING) { in warn_on_nonidempotent_op()
2528 op->opnum, nfsd4_op_name(op->opnum)); in warn_on_nonidempotent_op()