Lines Matching refs:op
482 …2 nfsd4_open_omfg(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_op *op) in nfsd4_open_omfg() argument
484 struct nfsd4_open *open = (struct nfsd4_open *)&op->u; in nfsd4_open_omfg()
486 if (!seqid_mutating_err(ntohl(op->status))) in nfsd4_open_omfg()
487 return op->status; in nfsd4_open_omfg()
489 return op->status; in nfsd4_open_omfg()
490 open->op_xdr_error = op->status; in nfsd4_open_omfg()
1447 typedef u32(*nfsd4op_rsize)(struct svc_rqst *, struct nfsd4_op *op);
1509 struct nfsd4_op *op = &args->ops[0]; in nfs41_check_op_ordering() local
1517 if (op->status == nfserr_op_illegal) in nfs41_check_op_ordering()
1519 if (!(nfsd4_ops[op->opnum].op_flags & ALLOWED_AS_FIRST_OP)) in nfs41_check_op_ordering()
1521 if (op->opnum == OP_SEQUENCE) in nfs41_check_op_ordering()
1528 static inline struct nfsd4_operation *OPDESC(struct nfsd4_op *op) in OPDESC() argument
1530 return &nfsd4_ops[op->opnum]; in OPDESC()
1533 bool nfsd4_cache_this_op(struct nfsd4_op *op) in nfsd4_cache_this_op() argument
1535 if (op->opnum == OP_ILLEGAL) in nfsd4_cache_this_op()
1537 return OPDESC(op)->op_flags & OP_CACHEME; in nfsd4_cache_this_op()
1601 struct nfsd4_op *op; in nfsd4_proc_compound() local
1633 op = &args->ops[0]; in nfsd4_proc_compound()
1634 op->status = status; in nfsd4_proc_compound()
1639 op = &args->ops[resp->opcnt++]; in nfsd4_proc_compound()
1642 resp->opcnt, args->opcnt, op->opnum, in nfsd4_proc_compound()
1643 nfsd4_op_name(op->opnum)); in nfsd4_proc_compound()
1649 if (op->status) { in nfsd4_proc_compound()
1650 if (op->opnum == OP_OPEN) in nfsd4_proc_compound()
1651 op->status = nfsd4_open_omfg(rqstp, cstate, op); in nfsd4_proc_compound()
1655 opdesc = OPDESC(op); in nfsd4_proc_compound()
1659 op->status = nfserr_nofilehandle; in nfsd4_proc_compound()
1664 op->status = nfserr_moved; in nfsd4_proc_compound()
1676 u32 plen = opdesc->op_rsize_bop(rqstp, op); in nfsd4_proc_compound()
1683 op->status = nfsd4_check_resp_size(resp, plen); in nfsd4_proc_compound()
1686 if (op->status) in nfsd4_proc_compound()
1690 opdesc->op_get_currentstateid(cstate, &op->u); in nfsd4_proc_compound()
1691 op->status = opdesc->op_func(rqstp, cstate, &op->u); in nfsd4_proc_compound()
1693 if (!op->status) { in nfsd4_proc_compound()
1695 opdesc->op_set_currentstateid(cstate, &op->u); in nfsd4_proc_compound()
1701 op->status = check_nfsd_access(current_fh->fh_export, rqstp); in nfsd4_proc_compound()
1708 status = op->status; in nfsd4_proc_compound()
1711 if (op->status == nfserr_replay_me) { in nfsd4_proc_compound()
1712 op->replay = &cstate->replay_owner->so_replay; in nfsd4_proc_compound()
1713 nfsd4_encode_replay(&resp->xdr, op); in nfsd4_proc_compound()
1714 status = op->status = op->replay->rp_status; in nfsd4_proc_compound()
1716 nfsd4_encode_operation(resp, op); in nfsd4_proc_compound()
1717 status = op->status; in nfsd4_proc_compound()
1721 args->ops, args->opcnt, resp->opcnt, op->opnum, in nfsd4_proc_compound()
1725 nfsd4_increment_op_stats(op->opnum); in nfsd4_proc_compound()
1757 static inline u32 nfsd4_only_status_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_only_status_rsize() argument
1762 static inline u32 nfsd4_status_stateid_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_status_stateid_rsize() argument
1767 static inline u32 nfsd4_commit_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_commit_rsize() argument
1772 static inline u32 nfsd4_create_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_create_rsize() argument
1784 struct nfsd4_op *op) in nfsd4_getattr_rsize() argument
1786 u32 *bmap = op->u.getattr.ga_bmval; in nfsd4_getattr_rsize()
1821 static inline u32 nfsd4_link_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_link_rsize() argument
1827 static inline u32 nfsd4_lock_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_lock_rsize() argument
1833 static inline u32 nfsd4_open_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_open_rsize() argument
1841 static inline u32 nfsd4_read_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_read_rsize() argument
1846 rlen = min(op->u.read.rd_length, maxcount); in nfsd4_read_rsize()
1851 static inline u32 nfsd4_readdir_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_readdir_rsize() argument
1856 rlen = min(op->u.readdir.rd_maxcount, maxcount); in nfsd4_readdir_rsize()
1862 static inline u32 nfsd4_remove_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_remove_rsize() argument
1868 static inline u32 nfsd4_rename_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_rename_rsize() argument
1875 struct nfsd4_op *op) in nfsd4_sequence_rsize() argument
1881 static inline u32 nfsd4_setattr_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_setattr_rsize() argument
1886 static inline u32 nfsd4_setclientid_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_setclientid_rsize() argument
1892 static inline u32 nfsd4_write_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_write_rsize() argument
1897 static inline u32 nfsd4_exchange_id_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_exchange_id_rsize() argument
1911 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
1918 static inline u32 nfsd4_create_session_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_create_session_rsize() argument
1933 static inline u32 nfsd4_layoutget_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_layoutget_rsize() argument
1942 static inline u32 nfsd4_layoutcommit_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_layoutcommit_rsize() argument
1949 static inline u32 nfsd4_layoutreturn_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_layoutreturn_rsize() argument
2289 int nfsd4_max_reply(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_max_reply() argument
2294 if (op->opnum == OP_ILLEGAL) in nfsd4_max_reply()
2296 opdesc = OPDESC(op); in nfsd4_max_reply()
2298 return estimator ? estimator(rqstp, op) : PAGE_SIZE; in nfsd4_max_reply()
2301 void warn_on_nonidempotent_op(struct nfsd4_op *op) in warn_on_nonidempotent_op() argument
2303 if (OPDESC(op)->op_flags & OP_MODIFIES_SOMETHING) { in warn_on_nonidempotent_op()
2305 op->opnum, nfsd4_op_name(op->opnum)); in warn_on_nonidempotent_op()