Home
last modified time | relevance | path

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

/freebsd/sys/fs/nfsserver/
H A Dnfs_nfsdserv.c5123 char *layp; in nfsrvd_layoutget() local
5163 layp = NULL; in nfsrvd_layoutget()
5166 layp = malloc(NFSX_V4FILELAYOUT, M_TEMP, M_WAITOK); in nfsrvd_layoutget()
5171 layp = malloc(NFSX_V4FLEXLAYOUT(NFSDEV_MAXMIRRORS, in nfsrvd_layoutget()
5175 if (layp != NULL) in nfsrvd_layoutget()
5178 &retonclose, &layoutlen, layp, nd->nd_cred, p); in nfsrvd_layoutget()
5198 nfsm_strtom(nd, layp, layoutlen); in nfsrvd_layoutget()
5203 free(layp, M_TEMP); in nfsrvd_layoutget()
5223 char *layp; in nfsrvd_layoutcommit() local
5226 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,
6593 nfsv4stateid_t *stateidp, int maxcnt, char *layp, int *hasnewsizep, in nfsrv_layoutcommit() argument
6614 int *layoutlenp, char *layp, struct ucred *cred, NFSPROC_T *p) in nfsrv_layoutget() argument
6706 NFSBCOPY(lyp->lay_xdr, layp, lyp->lay_layoutlen); in nfsrv_layoutget()
6745 error = nfsrv_addlayout(nd, &lyp, stateidp, layp, layoutlenp, p); in nfsrv_layoutget()
6874 nfsrv_flexlayouterr(struct nfsrv_descript *nd, uint32_t *layp, int maxcnt, in nfsrv_flexlayouterr() argument
6881 tl = layp; in nfsrv_flexlayouterr()
7108 int kind, nfsv4stateid_t *stateidp, int maxcnt, uint32_t *layp, int *fndp, in nfsrv_layoutreturn() argument
7193 if (layouttype == NFSLAYOUT_FLEXFILE && layp != NULL) in nfsrv_layoutreturn()
[all …]
/freebsd/sys/fs/nfsclient/
H A Dnfs_clrpcops.c6612 struct nfscllayout *layp; in nfscl_doiods() local
6647 layp = nfscl_getlayout(nmp->nm_clp, np->n_fhp->nfh_fh, in nfscl_doiods()
6649 if (layp == NULL || rflp == NULL) { in nfscl_doiods()
6657 if (layp != NULL) { in nfscl_doiods()
6658 nfscl_rellayout(layp, (rflp == NULL) ? 1 : 0); in nfscl_doiods()
6659 layp = NULL; in nfscl_doiods()
6668 rwaccess, NULL, &stateid, off, &layp, newcred, p); in nfscl_doiods()
6676 if (layp != NULL) in nfscl_doiods()
6677 nfscl_rellayout(layp, 0); in nfscl_doiods()
6692 error = nfscl_findlayoutforio(layp, off, rwaccess, &rflp); in nfscl_doiods()
[all …]
H A Dnfs_clstate.c5758 nfscl_freelayout(struct nfscllayout *layp) in nfscl_freelayout() argument
5763 LIST_FOREACH_SAFE(flp, &layp->nfsly_flayread, nfsfl_list, nflp) { in nfscl_freelayout()
5767 LIST_FOREACH_SAFE(flp, &layp->nfsly_flayrw, nfsfl_list, nflp) { in nfscl_freelayout()
5771 LIST_FOREACH_SAFE(rp, &layp->nfsly_recall, nfsrecly_list, nrp) { in nfscl_freelayout()
5775 layp->nfsly_clp->nfsc_layoutcnt--; in nfscl_freelayout()
5777 free(layp, M_NFSLAYOUT); in nfscl_freelayout()