Lines Matching defs:nmp
245 static struct nfsdevice *nfsrv_findmirroredds(struct nfsmount *nmp);
7832 struct nfsmount *nmp;
7849 nmp = NULL;
7855 nmp = VFSTONFS(mp);
7856 NFSLOCKMNT(nmp);
7857 if ((nmp->nm_privflag & (NFSMNTP_FORCEDISM |
7859 nmp->nm_privflag |= NFSMNTP_CANCELRPCS;
7860 NFSUNLOCKMNT(nmp);
7862 NFSUNLOCKMNT(nmp);
7863 nmp = NULL;
7870 if (nmp != NULL) {
7871 ds = nfsrv_deldsnmp(op, nmp, p);
7874 nfsrv_killrpcs(nmp);
7878 NFSLOCKMNT(nmp);
7879 nmp->nm_privflag &= ~NFSMNTP_CANCELRPCS;
7880 wakeup(nmp);
7881 NFSUNLOCKMNT(nmp);
7888 * Search for and remove a DS entry which matches the "nmp" argument.
7895 nfsrv_deldsnmp(int op, struct nfsmount *nmp, NFSPROC_T *p)
7902 fndds = nfsv4_findmirror(nmp);
7904 fndds = nfsrv_findmirroredds(nmp);
7926 struct nfsmount *nmp;
7935 nmp = NULL;
7965 nmp = fndds->nfsdev_nmp;
7966 NFSLOCKMNT(nmp);
7967 if ((nmp->nm_privflag & (NFSMNTP_FORCEDISM |
7969 nmp->nm_privflag |= NFSMNTP_CANCELRPCS;
7970 NFSUNLOCKMNT(nmp);
7973 NFSUNLOCKMNT(nmp);
7974 nmp = NULL;
7978 if (nmp != NULL) {
7981 nfsrv_killrpcs(nmp);
7982 NFSLOCKMNT(nmp);
7983 nmp->nm_privflag &= ~NFSMNTP_CANCELRPCS;
7984 wakeup(nmp);
7985 NFSUNLOCKMNT(nmp);
8638 struct nfsmount *nmp, *curnmp;
8744 nmp = VFSTONFS(nd.ni_vp->v_mount);
8752 *dsp = nfsrv_findmirroredds(nmp);
8754 *dsp = nfsv4_findmirror(nmp);
8766 nmp = NULL;
8773 * on the MDS file (as checked via the nmp argument),
8777 NULL, NULL, NULL, fname, nvpp, &nmp, curnmp, &ippos, &dsdir);
8781 if (error == 0 && nmp != NULL) {
8784 *dsp = nfsrv_findmirroredds(nmp);
8787 if (error == 0 && (nmp == NULL || *dsp == NULL)) {
8830 * Search for a matching pnfsd mirror device structure, base on the nmp arg.
8834 nfsrv_findmirroredds(struct nfsmount *nmp)
8841 * Search the DS server list for a match with nmp.
8849 if (ds->nfsdev_nmp == nmp) {