Home
last modified time | relevance | path

Searched refs:layp (Results 1 – 4 of 4) sorted by relevance

/src/sys/fs/nfsserver/
H A Dnfs_nfsdserv.c5065 char *layp; in nfsrvd_layoutget() local
5105 layp = NULL; in nfsrvd_layoutget()
5107 layp = malloc(NFSX_V4FILELAYOUT, M_TEMP, M_WAITOK); in nfsrvd_layoutget()
5109 layp = malloc(NFSX_V4FLEXLAYOUT(nfsrv_maxpnfsmirror), M_TEMP, in nfsrvd_layoutget()
5113 if (layp != NULL) in nfsrvd_layoutget()
5116 &retonclose, &layoutlen, layp, nd->nd_cred, p); in nfsrvd_layoutget()
5136 nfsm_strtom(nd, layp, layoutlen); in nfsrvd_layoutget()
5141 free(layp, M_TEMP); in nfsrvd_layoutget()
5161 char *layp; in nfsrvd_layoutcommit() local
5164 layp = NULL; in nfsrvd_layoutcommit()
[all …]
H A Dnfs_nfsdstate.c217 nfsv4stateid_t *stateidp, char *layp, int *layoutlenp, NFSPROC_T *p);
229 static void nfsrv_flexlayouterr(struct nfsrv_descript *nd, uint32_t *layp,
6798 nfsv4stateid_t *stateidp, int maxcnt, char *layp, int *hasnewsizep, in nfsrv_layoutcommit() argument
6819 int *layoutlenp, char *layp, struct ucred *cred, NFSPROC_T *p) in nfsrv_layoutget() argument
6910 NFSBCOPY(lyp->lay_xdr, layp, lyp->lay_layoutlen); in nfsrv_layoutget()
6950 error = nfsrv_addlayout(nd, &lyp, stateidp, layp, layoutlenp, p); in nfsrv_layoutget()
7077 nfsrv_flexlayouterr(struct nfsrv_descript *nd, uint32_t *layp, int maxcnt, in nfsrv_flexlayouterr() argument
7084 tl = layp; in nfsrv_flexlayouterr()
7311 int kind, nfsv4stateid_t *stateidp, int maxcnt, uint32_t *layp, int *fndp, in nfsrv_layoutreturn() argument
7396 if (layouttype == NFSLAYOUT_FLEXFILE && layp != NULL) in nfsrv_layoutreturn()
[all …]
/src/sys/fs/nfsclient/
H A Dnfs_clrpcops.c6593 struct nfscllayout *layp; in nfscl_doiods() local
6628 layp = nfscl_getlayout(nmp->nm_clp, np->n_fhp->nfh_fh, in nfscl_doiods()
6630 if (layp == NULL || rflp == NULL) { in nfscl_doiods()
6638 if (layp != NULL) { in nfscl_doiods()
6639 nfscl_rellayout(layp, (rflp == NULL) ? 1 : 0); in nfscl_doiods()
6640 layp = NULL; in nfscl_doiods()
6649 rwaccess, NULL, &stateid, off, &layp, newcred, p); in nfscl_doiods()
6657 if (layp != NULL) in nfscl_doiods()
6658 nfscl_rellayout(layp, 0); in nfscl_doiods()
6673 error = nfscl_findlayoutforio(layp, off, rwaccess, &rflp); in nfscl_doiods()
[all …]
H A Dnfs_clstate.c5707 nfscl_freelayout(struct nfscllayout *layp) in nfscl_freelayout() argument
5712 LIST_FOREACH_SAFE(flp, &layp->nfsly_flayread, nfsfl_list, nflp) { in nfscl_freelayout()
5716 LIST_FOREACH_SAFE(flp, &layp->nfsly_flayrw, nfsfl_list, nflp) { in nfscl_freelayout()
5720 LIST_FOREACH_SAFE(rp, &layp->nfsly_recall, nfsrecly_list, nrp) { in nfscl_freelayout()
5724 layp->nfsly_clp->nfsc_layoutcnt--; in nfscl_freelayout()
5726 free(layp, M_NFSLAYOUT); in nfscl_freelayout()