• Home
  • Raw
  • Download

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()
1540 typedef u32(*nfsd4op_rsize)(struct svc_rqst *, struct nfsd4_op *op);
1602 struct nfsd4_op *op = &args->ops[0]; in nfs41_check_op_ordering() local
1610 if (op->status == nfserr_op_illegal) in nfs41_check_op_ordering()
1612 if (!(nfsd4_ops[op->opnum].op_flags & ALLOWED_AS_FIRST_OP)) in nfs41_check_op_ordering()
1614 if (op->opnum == OP_SEQUENCE) in nfs41_check_op_ordering()
1621 static inline struct nfsd4_operation *OPDESC(struct nfsd4_op *op) in OPDESC() argument
1623 return &nfsd4_ops[op->opnum]; in OPDESC()
1626 bool nfsd4_cache_this_op(struct nfsd4_op *op) in nfsd4_cache_this_op() argument
1628 if (op->opnum == OP_ILLEGAL) in nfsd4_cache_this_op()
1630 return OPDESC(op)->op_flags & OP_CACHEME; in nfsd4_cache_this_op()
1694 struct nfsd4_op *op; in nfsd4_proc_compound() local
1726 op = &args->ops[0]; in nfsd4_proc_compound()
1727 op->status = status; in nfsd4_proc_compound()
1732 op = &args->ops[resp->opcnt++]; in nfsd4_proc_compound()
1735 resp->opcnt, args->opcnt, op->opnum, in nfsd4_proc_compound()
1736 nfsd4_op_name(op->opnum)); in nfsd4_proc_compound()
1742 if (op->status) { in nfsd4_proc_compound()
1743 if (op->opnum == OP_OPEN) in nfsd4_proc_compound()
1744 op->status = nfsd4_open_omfg(rqstp, cstate, op); in nfsd4_proc_compound()
1748 opdesc = OPDESC(op); in nfsd4_proc_compound()
1752 op->status = nfserr_nofilehandle; in nfsd4_proc_compound()
1757 op->status = nfserr_moved; in nfsd4_proc_compound()
1769 u32 plen = opdesc->op_rsize_bop(rqstp, op); in nfsd4_proc_compound()
1776 op->status = nfsd4_check_resp_size(resp, plen); in nfsd4_proc_compound()
1779 if (op->status) in nfsd4_proc_compound()
1783 opdesc->op_get_currentstateid(cstate, &op->u); in nfsd4_proc_compound()
1784 op->status = opdesc->op_func(rqstp, cstate, &op->u); in nfsd4_proc_compound()
1789 status = op->status; in nfsd4_proc_compound()
1792 if (!op->status) { in nfsd4_proc_compound()
1794 opdesc->op_set_currentstateid(cstate, &op->u); in nfsd4_proc_compound()
1800 op->status = check_nfsd_access(current_fh->fh_export, rqstp); in nfsd4_proc_compound()
1803 if (op->status == nfserr_replay_me) { in nfsd4_proc_compound()
1804 op->replay = &cstate->replay_owner->so_replay; in nfsd4_proc_compound()
1805 nfsd4_encode_replay(&resp->xdr, op); in nfsd4_proc_compound()
1806 status = op->status = op->replay->rp_status; in nfsd4_proc_compound()
1808 nfsd4_encode_operation(resp, op); in nfsd4_proc_compound()
1809 status = op->status; in nfsd4_proc_compound()
1813 args->ops, args->opcnt, resp->opcnt, op->opnum, in nfsd4_proc_compound()
1817 nfsd4_increment_op_stats(op->opnum); in nfsd4_proc_compound()
1849 static inline u32 nfsd4_only_status_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_only_status_rsize() argument
1854 static inline u32 nfsd4_status_stateid_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_status_stateid_rsize() argument
1859 static inline u32 nfsd4_commit_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_commit_rsize() argument
1864 static inline u32 nfsd4_create_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_create_rsize() argument
1876 struct nfsd4_op *op) in nfsd4_getattr_rsize() argument
1878 u32 *bmap = op->u.getattr.ga_bmval; in nfsd4_getattr_rsize()
1913 static inline u32 nfsd4_link_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_link_rsize() argument
1919 static inline u32 nfsd4_lock_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_lock_rsize() argument
1925 static inline u32 nfsd4_open_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_open_rsize() argument
1933 static inline u32 nfsd4_read_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_read_rsize() argument
1938 rlen = min(op->u.read.rd_length, maxcount); in nfsd4_read_rsize()
1943 static inline u32 nfsd4_readdir_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_readdir_rsize() argument
1948 rlen = min(op->u.readdir.rd_maxcount, maxcount); in nfsd4_readdir_rsize()
1954 static inline u32 nfsd4_remove_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_remove_rsize() argument
1960 static inline u32 nfsd4_rename_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_rename_rsize() argument
1967 struct nfsd4_op *op) in nfsd4_sequence_rsize() argument
1973 static inline u32 nfsd4_setattr_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_setattr_rsize() argument
1978 static inline u32 nfsd4_setclientid_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_setclientid_rsize() argument
1984 static inline u32 nfsd4_write_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_write_rsize() argument
1989 static inline u32 nfsd4_exchange_id_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_exchange_id_rsize() argument
2003 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
2010 static inline u32 nfsd4_create_session_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_create_session_rsize() argument
2019 static inline u32 nfsd4_copy_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_copy_rsize() argument
2037 static inline u32 nfsd4_layoutget_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_layoutget_rsize() argument
2046 static inline u32 nfsd4_layoutcommit_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_layoutcommit_rsize() argument
2053 static inline u32 nfsd4_layoutreturn_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_layoutreturn_rsize() argument
2444 int nfsd4_max_reply(struct svc_rqst *rqstp, struct nfsd4_op *op) in nfsd4_max_reply() argument
2449 if (op->opnum == OP_ILLEGAL) in nfsd4_max_reply()
2451 opdesc = OPDESC(op); in nfsd4_max_reply()
2453 return estimator ? estimator(rqstp, op) : PAGE_SIZE; in nfsd4_max_reply()
2456 void warn_on_nonidempotent_op(struct nfsd4_op *op) in warn_on_nonidempotent_op() argument
2458 if (OPDESC(op)->op_flags & OP_MODIFIES_SOMETHING) { in warn_on_nonidempotent_op()
2460 op->opnum, nfsd4_op_name(op->opnum)); in warn_on_nonidempotent_op()