• Home
  • Raw
  • Download

Lines Matching refs:argp

119 	if (!(x = (p==argp->tmp || p == argp->tmpp) ? \
120 savemem(argp, p, nbytes) : \
135 if (nbytes <= (u32)((char *)argp->end - (char *)argp->p)) { \
136 p = argp->p; \
137 argp->p += XDR_QUADLEN(nbytes); \
138 } else if (!(p = read_buf(argp, nbytes))) { \
145 static void next_decode_page(struct nfsd4_compoundargs *argp) in next_decode_page() argument
147 argp->p = page_address(argp->pagelist[0]); in next_decode_page()
148 argp->pagelist++; in next_decode_page()
149 if (argp->pagelen < PAGE_SIZE) { in next_decode_page()
150 argp->end = argp->p + XDR_QUADLEN(argp->pagelen); in next_decode_page()
151 argp->pagelen = 0; in next_decode_page()
153 argp->end = argp->p + (PAGE_SIZE>>2); in next_decode_page()
154 argp->pagelen -= PAGE_SIZE; in next_decode_page()
158 static __be32 *read_buf(struct nfsd4_compoundargs *argp, u32 nbytes) in read_buf() argument
163 unsigned int avail = (char *)argp->end - (char *)argp->p; in read_buf()
166 if (argp->pagelen == 0) { in read_buf()
167 struct kvec *vec = &argp->rqstp->rq_arg.tail[0]; in read_buf()
169 if (!argp->tail) { in read_buf()
170 argp->tail = true; in read_buf()
172 argp->p = vec->iov_base; in read_buf()
173 argp->end = vec->iov_base + avail; in read_buf()
179 p = argp->p; in read_buf()
180 argp->p += XDR_QUADLEN(nbytes); in read_buf()
184 if (avail + argp->pagelen < nbytes) in read_buf()
189 if (nbytes <= sizeof(argp->tmp)) in read_buf()
190 p = argp->tmp; in read_buf()
192 kfree(argp->tmpp); in read_buf()
193 p = argp->tmpp = kmalloc(nbytes, GFP_KERNEL); in read_buf()
203 memcpy(p, argp->p, avail); in read_buf()
204 next_decode_page(argp); in read_buf()
205 memcpy(((char*)p)+avail, argp->p, (nbytes - avail)); in read_buf()
206 argp->p += XDR_QUADLEN(nbytes - avail); in read_buf()
210 static unsigned int compoundargs_bytes_left(struct nfsd4_compoundargs *argp) in compoundargs_bytes_left() argument
212 unsigned int this = (char *)argp->end - (char *)argp->p; in compoundargs_bytes_left()
214 return this + argp->pagelen; in compoundargs_bytes_left()
231 svcxdr_tmpalloc(struct nfsd4_compoundargs *argp, u32 len) in svcxdr_tmpalloc() argument
238 tb->next = argp->to_free; in svcxdr_tmpalloc()
239 argp->to_free = tb; in svcxdr_tmpalloc()
251 svcxdr_dupstr(struct nfsd4_compoundargs *argp, void *buf, u32 len) in svcxdr_dupstr() argument
253 char *p = svcxdr_tmpalloc(argp, len + 1); in svcxdr_dupstr()
263 svcxdr_construct_vector(struct nfsd4_compoundargs *argp, struct kvec *head, in svcxdr_construct_vector() argument
274 avail = (char *)argp->end - (char *)argp->p; in svcxdr_construct_vector()
275 if (avail + argp->pagelen < buflen) { in svcxdr_construct_vector()
280 head->iov_base = argp->p; in svcxdr_construct_vector()
282 *pagelist = argp->pagelist; in svcxdr_construct_vector()
289 argp->pagelist += pages; in svcxdr_construct_vector()
290 argp->pagelen -= pages * PAGE_SIZE; in svcxdr_construct_vector()
293 next_decode_page(argp); in svcxdr_construct_vector()
295 argp->p += XDR_QUADLEN(len); in svcxdr_construct_vector()
310 static char *savemem(struct nfsd4_compoundargs *argp, __be32 *p, int nbytes) in savemem() argument
314 ret = svcxdr_tmpalloc(argp, nbytes); in savemem()
322 nfsd4_decode_time(struct nfsd4_compoundargs *argp, struct timespec64 *tv) in nfsd4_decode_time() argument
336 nfsd4_decode_bitmap(struct nfsd4_compoundargs *argp, u32 *bmval) in nfsd4_decode_bitmap() argument
362 nfsd4_decode_fattr(struct nfsd4_compoundargs *argp, u32 *bmval, in nfsd4_decode_fattr() argument
372 if ((status = nfsd4_decode_bitmap(argp, bmval))) in nfsd4_decode_fattr()
378 if (nfsd_attrs_supported(argp->minorversion, bmval)) in nfsd4_decode_fattr()
399 if (nace > compoundargs_bytes_left(argp)/20) in nfsd4_decode_fattr()
407 *acl = svcxdr_tmpalloc(argp, nfs4_acl_bytes(nace)); in nfsd4_decode_fattr()
426 status = nfsd_map_name_to_gid(argp->rqstp, in nfsd4_decode_fattr()
429 status = nfsd_map_name_to_uid(argp->rqstp, in nfsd4_decode_fattr()
450 if ((status = nfsd_map_name_to_uid(argp->rqstp, buf, dummy32, &iattr->ia_uid))) in nfsd4_decode_fattr()
461 if ((status = nfsd_map_name_to_gid(argp->rqstp, buf, dummy32, &iattr->ia_gid))) in nfsd4_decode_fattr()
472 status = nfsd4_decode_time(argp, &iattr->ia_atime); in nfsd4_decode_fattr()
491 status = nfsd4_decode_time(argp, &iattr->ia_mtime); in nfsd4_decode_fattr()
522 label->data = svcxdr_dupstr(argp, buf, dummy32); in nfsd4_decode_fattr()
544 nfsd4_decode_stateid(struct nfsd4_compoundargs *argp, stateid_t *sid) in nfsd4_decode_stateid() argument
556 nfsd4_decode_access(struct nfsd4_compoundargs *argp, struct nfsd4_access *access) in nfsd4_decode_access() argument
566 static __be32 nfsd4_decode_cb_sec(struct nfsd4_compoundargs *argp, struct nfsd4_cb_sec *cbs) in nfsd4_decode_cb_sec() argument
569 struct user_namespace *userns = nfsd_user_namespace(argp->rqstp); in nfsd4_decode_cb_sec()
647 static __be32 nfsd4_decode_backchannel_ctl(struct nfsd4_compoundargs *argp, struct nfsd4_backchanne… in nfsd4_decode_backchannel_ctl() argument
653 nfsd4_decode_cb_sec(argp, &bc->bc_cb_sec); in nfsd4_decode_backchannel_ctl()
658 static __be32 nfsd4_decode_bind_conn_to_session(struct nfsd4_compoundargs *argp, struct nfsd4_bind_… in nfsd4_decode_bind_conn_to_session() argument
671 nfsd4_decode_close(struct nfsd4_compoundargs *argp, struct nfsd4_close *close) in nfsd4_decode_close() argument
677 return nfsd4_decode_stateid(argp, &close->cl_stateid); in nfsd4_decode_close()
684 nfsd4_decode_commit(struct nfsd4_compoundargs *argp, struct nfsd4_commit *commit) in nfsd4_decode_commit() argument
696 nfsd4_decode_create(struct nfsd4_compoundargs *argp, struct nfsd4_create *create) in nfsd4_decode_create() argument
707 create->cr_data = svcxdr_dupstr(argp, p, create->cr_datalen); in nfsd4_decode_create()
731 status = nfsd4_decode_fattr(argp, create->cr_bmval, &create->cr_iattr, in nfsd4_decode_create()
741 nfsd4_decode_delegreturn(struct nfsd4_compoundargs *argp, struct nfsd4_delegreturn *dr) in nfsd4_decode_delegreturn() argument
743 return nfsd4_decode_stateid(argp, &dr->dr_stateid); in nfsd4_decode_delegreturn()
747 nfsd4_decode_getattr(struct nfsd4_compoundargs *argp, struct nfsd4_getattr *getattr) in nfsd4_decode_getattr() argument
749 return nfsd4_decode_bitmap(argp, getattr->ga_bmval); in nfsd4_decode_getattr()
753 nfsd4_decode_link(struct nfsd4_compoundargs *argp, struct nfsd4_link *link) in nfsd4_decode_link() argument
768 nfsd4_decode_lock(struct nfsd4_compoundargs *argp, struct nfsd4_lock *lock) in nfsd4_decode_lock() argument
787 status = nfsd4_decode_stateid(argp, &lock->lk_new_open_stateid); in nfsd4_decode_lock()
797 status = nfsd4_decode_stateid(argp, &lock->lk_old_lock_stateid); in nfsd4_decode_lock()
808 nfsd4_decode_lockt(struct nfsd4_compoundargs *argp, struct nfsd4_lockt *lockt) in nfsd4_decode_lockt() argument
827 nfsd4_decode_locku(struct nfsd4_compoundargs *argp, struct nfsd4_locku *locku) in nfsd4_decode_locku() argument
836 status = nfsd4_decode_stateid(argp, &locku->lu_stateid); in nfsd4_decode_locku()
847 nfsd4_decode_lookup(struct nfsd4_compoundargs *argp, struct nfsd4_lookup *lookup) in nfsd4_decode_lookup() argument
861 static __be32 nfsd4_decode_share_access(struct nfsd4_compoundargs *argp, u32 *share_access, u32 *de… in nfsd4_decode_share_access() argument
884 if (!argp->minorversion) in nfsd4_decode_share_access()
914 static __be32 nfsd4_decode_share_deny(struct nfsd4_compoundargs *argp, u32 *x) in nfsd4_decode_share_deny() argument
928 static __be32 nfsd4_decode_opaque(struct nfsd4_compoundargs *argp, struct xdr_netobj *o) in nfsd4_decode_opaque() argument
946 nfsd4_decode_open(struct nfsd4_compoundargs *argp, struct nfsd4_open *open) in nfsd4_decode_open() argument
960 status = nfsd4_decode_share_access(argp, &open->op_share_access, in nfsd4_decode_open()
964 status = nfsd4_decode_share_deny(argp, &open->op_share_deny); in nfsd4_decode_open()
969 status = nfsd4_decode_opaque(argp, &open->op_owner); in nfsd4_decode_open()
983 status = nfsd4_decode_fattr(argp, open->op_bmval, in nfsd4_decode_open()
994 if (argp->minorversion < 1) in nfsd4_decode_open()
998 status = nfsd4_decode_fattr(argp, open->op_bmval, in nfsd4_decode_open()
1030 status = nfsd4_decode_stateid(argp, &open->op_delegate_stateid); in nfsd4_decode_open()
1042 if (argp->minorversion < 1) in nfsd4_decode_open()
1047 if (argp->minorversion < 1) in nfsd4_decode_open()
1049 status = nfsd4_decode_stateid(argp, &open->op_delegate_stateid); in nfsd4_decode_open()
1061 nfsd4_decode_open_confirm(struct nfsd4_compoundargs *argp, struct nfsd4_open_confirm *open_conf) in nfsd4_decode_open_confirm() argument
1065 if (argp->minorversion >= 1) in nfsd4_decode_open_confirm()
1068 status = nfsd4_decode_stateid(argp, &open_conf->oc_req_stateid); in nfsd4_decode_open_confirm()
1078 nfsd4_decode_open_downgrade(struct nfsd4_compoundargs *argp, struct nfsd4_open_downgrade *open_down) in nfsd4_decode_open_downgrade() argument
1082 status = nfsd4_decode_stateid(argp, &open_down->od_stateid); in nfsd4_decode_open_downgrade()
1087 status = nfsd4_decode_share_access(argp, &open_down->od_share_access, in nfsd4_decode_open_downgrade()
1091 status = nfsd4_decode_share_deny(argp, &open_down->od_share_deny); in nfsd4_decode_open_downgrade()
1098 nfsd4_decode_putfh(struct nfsd4_compoundargs *argp, struct nfsd4_putfh *putfh) in nfsd4_decode_putfh() argument
1113 nfsd4_decode_putpubfh(struct nfsd4_compoundargs *argp, void *p) in nfsd4_decode_putpubfh() argument
1115 if (argp->minorversion == 0) in nfsd4_decode_putpubfh()
1121 nfsd4_decode_read(struct nfsd4_compoundargs *argp, struct nfsd4_read *read) in nfsd4_decode_read() argument
1125 status = nfsd4_decode_stateid(argp, &read->rd_stateid); in nfsd4_decode_read()
1136 nfsd4_decode_readdir(struct nfsd4_compoundargs *argp, struct nfsd4_readdir *readdir) in nfsd4_decode_readdir() argument
1145 if ((status = nfsd4_decode_bitmap(argp, readdir->rd_bmval))) in nfsd4_decode_readdir()
1152 nfsd4_decode_remove(struct nfsd4_compoundargs *argp, struct nfsd4_remove *remove) in nfsd4_decode_remove() argument
1167 nfsd4_decode_rename(struct nfsd4_compoundargs *argp, struct nfsd4_rename *rename) in nfsd4_decode_rename() argument
1188 nfsd4_decode_renew(struct nfsd4_compoundargs *argp, clientid_t *clientid) in nfsd4_decode_renew() argument
1192 if (argp->minorversion >= 1) in nfsd4_decode_renew()
1202 nfsd4_decode_secinfo(struct nfsd4_compoundargs *argp, in nfsd4_decode_secinfo() argument
1218 nfsd4_decode_secinfo_no_name(struct nfsd4_compoundargs *argp, in nfsd4_decode_secinfo_no_name() argument
1229 nfsd4_decode_setattr(struct nfsd4_compoundargs *argp, struct nfsd4_setattr *setattr) in nfsd4_decode_setattr() argument
1233 status = nfsd4_decode_stateid(argp, &setattr->sa_stateid); in nfsd4_decode_setattr()
1236 return nfsd4_decode_fattr(argp, setattr->sa_bmval, &setattr->sa_iattr, in nfsd4_decode_setattr()
1241 nfsd4_decode_setclientid(struct nfsd4_compoundargs *argp, struct nfsd4_setclientid *setclientid) in nfsd4_decode_setclientid() argument
1245 if (argp->minorversion >= 1) in nfsd4_decode_setclientid()
1251 status = nfsd4_decode_opaque(argp, &setclientid->se_name); in nfsd4_decode_setclientid()
1271 nfsd4_decode_setclientid_confirm(struct nfsd4_compoundargs *argp, struct nfsd4_setclientid_confirm … in nfsd4_decode_setclientid_confirm() argument
1275 if (argp->minorversion >= 1) in nfsd4_decode_setclientid_confirm()
1287 nfsd4_decode_verify(struct nfsd4_compoundargs *argp, struct nfsd4_verify *verify) in nfsd4_decode_verify() argument
1291 if ((status = nfsd4_decode_bitmap(argp, verify->ve_bmval))) in nfsd4_decode_verify()
1306 nfsd4_decode_write(struct nfsd4_compoundargs *argp, struct nfsd4_write *write) in nfsd4_decode_write() argument
1310 status = nfsd4_decode_stateid(argp, &write->wr_stateid); in nfsd4_decode_write()
1320 status = svcxdr_construct_vector(argp, &write->wr_head, in nfsd4_decode_write()
1329 nfsd4_decode_release_lockowner(struct nfsd4_compoundargs *argp, struct nfsd4_release_lockowner *rlo… in nfsd4_decode_release_lockowner() argument
1333 if (argp->minorversion >= 1) in nfsd4_decode_release_lockowner()
1342 if (argp->minorversion && !zero_clientid(&rlockowner->rl_clientid)) in nfsd4_decode_release_lockowner()
1348 nfsd4_decode_exchange_id(struct nfsd4_compoundargs *argp, in nfsd4_decode_exchange_id() argument
1357 status = nfsd4_decode_opaque(argp, &exid->clname); in nfsd4_decode_exchange_id()
1372 status = nfsd4_decode_bitmap(argp, in nfsd4_decode_exchange_id()
1377 status = nfsd4_decode_bitmap(argp, exid->spo_must_allow); in nfsd4_decode_exchange_id()
1427 status = nfsd4_decode_opaque(argp, &exid->nii_domain); in nfsd4_decode_exchange_id()
1432 status = nfsd4_decode_opaque(argp, &exid->nii_name); in nfsd4_decode_exchange_id()
1437 status = nfsd4_decode_time(argp, &exid->nii_time); in nfsd4_decode_exchange_id()
1445 nfsd4_decode_create_session(struct nfsd4_compoundargs *argp, in nfsd4_decode_create_session() argument
1491 nfsd4_decode_cb_sec(argp, &sess->cb_sec); in nfsd4_decode_create_session()
1496 nfsd4_decode_destroy_session(struct nfsd4_compoundargs *argp, in nfsd4_decode_destroy_session() argument
1507 nfsd4_decode_free_stateid(struct nfsd4_compoundargs *argp, in nfsd4_decode_free_stateid() argument
1520 nfsd4_decode_sequence(struct nfsd4_compoundargs *argp, in nfsd4_decode_sequence() argument
1536 nfsd4_decode_test_stateid(struct nfsd4_compoundargs *argp, struct nfsd4_test_stateid *test_stateid) in nfsd4_decode_test_stateid() argument
1548 stateid = svcxdr_tmpalloc(argp, sizeof(*stateid)); in nfsd4_decode_test_stateid()
1557 status = nfsd4_decode_stateid(argp, &stateid->ts_id_stateid); in nfsd4_decode_test_stateid()
1571 static __be32 nfsd4_decode_destroy_clientid(struct nfsd4_compoundargs *argp, struct nfsd4_destroy_c… in nfsd4_decode_destroy_clientid() argument
1581 static __be32 nfsd4_decode_reclaim_complete(struct nfsd4_compoundargs *argp, struct nfsd4_reclaim_c… in nfsd4_decode_reclaim_complete() argument
1593 nfsd4_decode_getdeviceinfo(struct nfsd4_compoundargs *argp, in nfsd4_decode_getdeviceinfo() argument
1620 nfsd4_decode_layoutget(struct nfsd4_compoundargs *argp, in nfsd4_decode_layoutget() argument
1633 status = nfsd4_decode_stateid(argp, &lgp->lg_sid); in nfsd4_decode_layoutget()
1644 nfsd4_decode_layoutcommit(struct nfsd4_compoundargs *argp, in nfsd4_decode_layoutcommit() argument
1655 status = nfsd4_decode_stateid(argp, &lcp->lc_sid); in nfsd4_decode_layoutcommit()
1669 status = nfsd4_decode_time(argp, &lcp->lc_mtime); in nfsd4_decode_layoutcommit()
1692 nfsd4_decode_layoutreturn(struct nfsd4_compoundargs *argp, in nfsd4_decode_layoutreturn() argument
1707 status = nfsd4_decode_stateid(argp, &lrp->lr_sid); in nfsd4_decode_layoutreturn()
1727 nfsd4_decode_fallocate(struct nfsd4_compoundargs *argp, in nfsd4_decode_fallocate() argument
1732 status = nfsd4_decode_stateid(argp, &fallocate->falloc_stateid); in nfsd4_decode_fallocate()
1744 nfsd4_decode_clone(struct nfsd4_compoundargs *argp, struct nfsd4_clone *clone) in nfsd4_decode_clone() argument
1748 status = nfsd4_decode_stateid(argp, &clone->cl_src_stateid); in nfsd4_decode_clone()
1751 status = nfsd4_decode_stateid(argp, &clone->cl_dst_stateid); in nfsd4_decode_clone()
1762 static __be32 nfsd4_decode_nl4_server(struct nfsd4_compoundargs *argp, in nfsd4_decode_nl4_server() argument
1798 nfsd4_decode_copy(struct nfsd4_compoundargs *argp, struct nfsd4_copy *copy) in nfsd4_decode_copy() argument
1804 status = nfsd4_decode_stateid(argp, &copy->cp_src_stateid); in nfsd4_decode_copy()
1807 status = nfsd4_decode_stateid(argp, &copy->cp_dst_stateid); in nfsd4_decode_copy()
1827 status = nfsd4_decode_nl4_server(argp, &copy->cp_src); in nfsd4_decode_copy()
1835 status = nfsd4_decode_nl4_server(argp, ns_dummy); in nfsd4_decode_copy()
1848 nfsd4_decode_offload_status(struct nfsd4_compoundargs *argp, in nfsd4_decode_offload_status() argument
1851 return nfsd4_decode_stateid(argp, &os->stateid); in nfsd4_decode_offload_status()
1855 nfsd4_decode_copy_notify(struct nfsd4_compoundargs *argp, in nfsd4_decode_copy_notify() argument
1860 status = nfsd4_decode_stateid(argp, &cn->cpn_src_stateid); in nfsd4_decode_copy_notify()
1863 return nfsd4_decode_nl4_server(argp, &cn->cpn_dst); in nfsd4_decode_copy_notify()
1867 nfsd4_decode_seek(struct nfsd4_compoundargs *argp, struct nfsd4_seek *seek) in nfsd4_decode_seek() argument
1871 status = nfsd4_decode_stateid(argp, &seek->seek_stateid); in nfsd4_decode_seek()
1896 nfsd4_vbuf_from_vector(struct nfsd4_compoundargs *argp, struct kvec *head, in nfsd4_vbuf_from_vector() argument
1911 tmp = svcxdr_tmpalloc(argp, buflen); in nfsd4_vbuf_from_vector()
1939 nfsd4_decode_xattr_name(struct nfsd4_compoundargs *argp, char **namep) in nfsd4_decode_xattr_name() argument
1956 name = svcxdr_tmpalloc(argp, namelen + XATTR_USER_PREFIX_LEN + 1); in nfsd4_decode_xattr_name()
1989 nfsd4_decode_getxattr(struct nfsd4_compoundargs *argp, in nfsd4_decode_getxattr() argument
1995 status = nfsd4_decode_xattr_name(argp, &getxattr->getxa_name); in nfsd4_decode_getxattr()
1999 maxcount = svc_max_payload(argp->rqstp); in nfsd4_decode_getxattr()
2008 nfsd4_decode_setxattr(struct nfsd4_compoundargs *argp, in nfsd4_decode_setxattr() argument
2023 status = nfsd4_decode_xattr_name(argp, &setxattr->setxa_name); in nfsd4_decode_setxattr()
2027 maxcount = svc_max_payload(argp->rqstp); in nfsd4_decode_setxattr()
2037 status = svcxdr_construct_vector(argp, &head, &pagelist, size); in nfsd4_decode_setxattr()
2041 status = nfsd4_vbuf_from_vector(argp, &head, pagelist, in nfsd4_decode_setxattr()
2049 nfsd4_decode_listxattrs(struct nfsd4_compoundargs *argp, in nfsd4_decode_listxattrs() argument
2071 maxcount = min(maxcount, svc_max_payload(argp->rqstp)); in nfsd4_decode_listxattrs()
2078 nfsd4_decode_removexattr(struct nfsd4_compoundargs *argp, in nfsd4_decode_removexattr() argument
2081 return nfsd4_decode_xattr_name(argp, &removexattr->rmxa_name); in nfsd4_decode_removexattr()
2085 nfsd4_decode_noop(struct nfsd4_compoundargs *argp, void *p) in nfsd4_decode_noop() argument
2091 nfsd4_decode_notsupp(struct nfsd4_compoundargs *argp, void *p) in nfsd4_decode_notsupp() argument
2096 typedef __be32(*nfsd4_dec)(struct nfsd4_compoundargs *argp, void *);
2188 nfsd4_opnum_in_range(struct nfsd4_compoundargs *argp, struct nfsd4_op *op) in nfsd4_opnum_in_range() argument
2192 else if (argp->minorversion == 0 && op->opnum > LAST_NFS40_OP) in nfsd4_opnum_in_range()
2194 else if (argp->minorversion == 1 && op->opnum > LAST_NFS41_OP) in nfsd4_opnum_in_range()
2196 else if (argp->minorversion == 2 && op->opnum > LAST_NFS42_OP) in nfsd4_opnum_in_range()
2202 nfsd4_decode_compound(struct nfsd4_compoundargs *argp) in nfsd4_decode_compound() argument
2207 int auth_slack= argp->rqstp->rq_auth_slack; in nfsd4_decode_compound()
2214 argp->taglen = be32_to_cpup(p++); in nfsd4_decode_compound()
2215 READ_BUF(argp->taglen); in nfsd4_decode_compound()
2216 SAVEMEM(argp->tag, argp->taglen); in nfsd4_decode_compound()
2218 argp->minorversion = be32_to_cpup(p++); in nfsd4_decode_compound()
2219 argp->opcnt = be32_to_cpup(p++); in nfsd4_decode_compound()
2220 max_reply += 4 + (XDR_QUADLEN(argp->taglen) << 2); in nfsd4_decode_compound()
2222 if (argp->taglen > NFSD4_MAX_TAGLEN) in nfsd4_decode_compound()
2229 if (argp->opcnt > NFSD_MAX_OPS_PER_COMPOUND) in nfsd4_decode_compound()
2232 if (argp->opcnt > ARRAY_SIZE(argp->iops)) { in nfsd4_decode_compound()
2233 argp->ops = kzalloc(argp->opcnt * sizeof(*argp->ops), GFP_KERNEL); in nfsd4_decode_compound()
2234 if (!argp->ops) { in nfsd4_decode_compound()
2235 argp->ops = argp->iops; in nfsd4_decode_compound()
2241 if (argp->minorversion > NFSD_SUPPORTED_MINOR_VERSION) in nfsd4_decode_compound()
2242 argp->opcnt = 0; in nfsd4_decode_compound()
2244 for (i = 0; i < argp->opcnt; i++) { in nfsd4_decode_compound()
2245 op = &argp->ops[i]; in nfsd4_decode_compound()
2251 if (nfsd4_opnum_in_range(argp, op)) in nfsd4_decode_compound()
2252 op->status = nfsd4_dec_ops[op->opnum](argp, &op->u); in nfsd4_decode_compound()
2266 readbytes += nfsd4_max_reply(argp->rqstp, op); in nfsd4_decode_compound()
2268 max_reply += nfsd4_max_reply(argp->rqstp, op); in nfsd4_decode_compound()
2279 argp->opcnt = i+1; in nfsd4_decode_compound()
2284 if (argp->minorversion) in nfsd4_decode_compound()
2286 svc_reserve(argp->rqstp, max_reply + readbytes); in nfsd4_decode_compound()
2287 argp->rqstp->rq_cachetype = cachethis ? RC_REPLBUFF : RC_NOCACHE; in nfsd4_decode_compound()
2290 clear_bit(RQ_SPLICE_OK, &argp->rqstp->rq_flags); in nfsd4_decode_compound()