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.c4799 char *layp; in nfsrvd_layoutget() local
4839 layp = NULL; in nfsrvd_layoutget()
4841 layp = malloc(NFSX_V4FILELAYOUT, M_TEMP, M_WAITOK); in nfsrvd_layoutget()
4843 layp = malloc(NFSX_V4FLEXLAYOUT(nfsrv_maxpnfsmirror), M_TEMP, in nfsrvd_layoutget()
4847 if (layp != NULL) in nfsrvd_layoutget()
4850 &retonclose, &layoutlen, layp, nd->nd_cred, p); in nfsrvd_layoutget()
4870 nfsm_strtom(nd, layp, layoutlen); in nfsrvd_layoutget()
4875 free(layp, M_TEMP); in nfsrvd_layoutget()
4895 char *layp; in nfsrvd_layoutcommit() local
4898 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,
6784 nfsv4stateid_t *stateidp, int maxcnt, char *layp, int *hasnewsizep, in nfsrv_layoutcommit() argument
6805 int *layoutlenp, char *layp, struct ucred *cred, NFSPROC_T *p) in nfsrv_layoutget() argument
6896 NFSBCOPY(lyp->lay_xdr, layp, lyp->lay_layoutlen); in nfsrv_layoutget()
6936 error = nfsrv_addlayout(nd, &lyp, stateidp, layp, layoutlenp, p); in nfsrv_layoutget()
7063 nfsrv_flexlayouterr(struct nfsrv_descript *nd, uint32_t *layp, int maxcnt, in nfsrv_flexlayouterr() argument
7070 tl = layp; in nfsrv_flexlayouterr()
7297 int kind, nfsv4stateid_t *stateidp, int maxcnt, uint32_t *layp, int *fndp, in nfsrv_layoutreturn() argument
7382 if (layouttype == NFSLAYOUT_FLEXFILE && layp != NULL) in nfsrv_layoutreturn()
[all …]
/freebsd/sys/fs/nfsclient/
H A Dnfs_clrpcops.c6383 struct nfscllayout *layp; in nfscl_doiods() local
6418 layp = nfscl_getlayout(nmp->nm_clp, np->n_fhp->nfh_fh, in nfscl_doiods()
6420 if (layp == NULL || rflp == NULL) { in nfscl_doiods()
6428 if (layp != NULL) { in nfscl_doiods()
6429 nfscl_rellayout(layp, (rflp == NULL) ? 1 : 0); in nfscl_doiods()
6430 layp = NULL; in nfscl_doiods()
6439 rwaccess, NULL, &stateid, off, &layp, newcred, p); in nfscl_doiods()
6447 if (layp != NULL) in nfscl_doiods()
6448 nfscl_rellayout(layp, 0); in nfscl_doiods()
6463 error = nfscl_findlayoutforio(layp, of in nfscl_doiods()
[all...]
H A Dnfs_clstate.c5705 nfscl_freelayout(struct nfscllayout *layp) in nfscl_freelayout() argument
5710 LIST_FOREACH_SAFE(flp, &layp->nfsly_flayread, nfsfl_list, nflp) { in nfscl_freelayout()
5714 LIST_FOREACH_SAFE(flp, &layp->nfsly_flayrw, nfsfl_list, nflp) { in nfscl_freelayout()
5718 LIST_FOREACH_SAFE(rp, &layp->nfsly_recall, nfsrecly_list, nrp) { in nfscl_freelayout()
5722 layp->nfsly_clp->nfsc_layoutcnt--; in nfscl_freelayout()
5724 free(layp, M_NFSLAYOUT); in nfscl_freelayout()