Lines Matching refs:op

484 …2 nfsd4_open_omfg(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_op *op)  in nfsd4_open_omfg()  argument
486 struct nfsd4_open *open = (struct nfsd4_open *)&op->u; in nfsd4_open_omfg()
488 if (!seqid_mutating_err(ntohl(op->status))) in nfsd4_open_omfg()
489 return op->status; in nfsd4_open_omfg()
491 return op->status; in nfsd4_open_omfg()
492 open->op_xdr_error = op->status; in nfsd4_open_omfg()
1458 typedef u32(*nfsd4op_rsize)(struct svc_rqst *, struct nfsd4_op *op);
1520 struct nfsd4_op *op = &args->ops[0]; in nfs41_check_op_ordering() local
1528 if (op->status == nfserr_op_illegal) in nfs41_check_op_ordering()
1530 if (!(nfsd4_ops[op->opnum].op_flags & ALLOWED_AS_FIRST_OP)) in nfs41_check_op_ordering()
1532 if (op->opnum == OP_SEQUENCE) in nfs41_check_op_ordering()
1539 static inline struct nfsd4_operation *OPDESC(struct nfsd4_op *op) in OPDESC() argument
1541 return &nfsd4_ops[op->opnum]; in OPDESC()
1544 bool nfsd4_cache_this_op(struct nfsd4_op *op) in nfsd4_cache_this_op() argument
1546 if (op->opnum == OP_ILLEGAL) in nfsd4_cache_this_op()
1548 return OPDESC(op)->op_flags & OP_CACHEME; in nfsd4_cache_this_op()
1612 struct nfsd4_op *op; in nfsd4_proc_compound() local
1644 op = &args->ops[0]; in nfsd4_proc_compound()
1645 op->status = status; in nfsd4_proc_compound()
1650 op = &args->ops[resp->opcnt++]; in nfsd4_proc_compound()
1653 resp->opcnt, args->opcnt, op->opnum, in nfsd4_proc_compound()
1654 nfsd4_op_name(op->opnum)); in nfsd4_proc_compound()
1660 if (op->status) { in nfsd4_proc_compound()
1661 if (op->opnum == OP_OPEN) in nfsd4_proc_compound()
1662 op->status = nfsd4_open_omfg(rqstp, cstate, op); in nfsd4_proc_compound()
1666 opdesc = OPDESC(op); in nfsd4_proc_compound()
1670 op->status = nfserr_nofilehandle; in nfsd4_proc_compound()
1675 op->status = nfserr_moved; in nfsd4_proc_compound()
1687 u32 plen = opdesc->op_rsize_bop(rqstp, op); in nfsd4_proc_compound()
1694 op->status = nfsd4_check_resp_size(resp, plen); in nfsd4_proc_compound()
1697 if (op->status) in nfsd4_proc_compound()
1701 opdesc->op_get_currentstateid(cstate, &op->u); in nfsd4_proc_compound()
1702 op->status = opdesc->op_func(rqstp, cstate, &op->u); in nfsd4_proc_compound()
1704 if (!op->status) { in nfsd4_proc_compound()
1706 opdesc->op_set_currentstateid(cstate, &op->u); in nfsd4_proc_compound()
1712 op->status = check_nfsd_access(current_fh->fh_export, rqstp); in nfsd4_proc_compound()
1719 status = op->status; in nfsd4_proc_compound()
1722 if (op->status == nfserr_replay_me) { in nfsd4_proc_compound()
1723 op->replay = &cstate->replay_owner->so_replay; in nfsd4_proc_compound()
1724 nfsd4_encode_replay(&resp->xdr, op); in nfsd4_proc_compound()
1725 status = op->status = op->replay->rp_status; in nfsd4_proc_compound()
1727 nfsd4_encode_operation(resp, op); in nfsd4_proc_compound()
1728 status = op->status; in nfsd4_proc_compound()
1732 args->ops, args->opcnt, resp->opcnt, op->opnum, in nfsd4_proc_compound()
1737 if (op->opnum == OP_READ && op->u.read.rd_filp) in nfsd4_proc_compound()
1738 fput(op->u.read.rd_filp); in nfsd4_proc_compound()
1740 nfsd4_increment_op_stats(op->opnum); 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
1799 struct nfsd4_op *op) in nfsd4_getattr_rsize() argument
1801 u32 *bmap = op->u.getattr.ga_bmval; 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
1861 rlen = min(op->u.read.rd_length, maxcount); in nfsd4_read_rsize()
1866 static inline u32 nfsd4_readdir_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_readdir_rsize() argument
1871 rlen = min(op->u.readdir.rd_maxcount, maxcount); 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
1890 struct nfsd4_op *op) 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
2309 if (op->opnum == OP_ILLEGAL) in nfsd4_max_reply()
2311 opdesc = OPDESC(op); in nfsd4_max_reply()
2313 return estimator ? estimator(rqstp, op) : PAGE_SIZE; in nfsd4_max_reply()
2316 void warn_on_nonidempotent_op(struct nfsd4_op *op) in warn_on_nonidempotent_op() argument
2318 if (OPDESC(op)->op_flags & OP_MODIFIES_SOMETHING) { in warn_on_nonidempotent_op()
2320 op->opnum, nfsd4_op_name(op->opnum)); in warn_on_nonidempotent_op()