HomeSort by: relevance | last modified time | path
    Searched defs:nmp (Results 1 - 23 of 23) sorted by relevancy

  /src/sys/miscfs/nullfs/
null_vfsops.c 101 struct null_mount *nmp; local in function:nullfs_mount
139 nmp = kmem_zalloc(sizeof(struct null_mount), KM_SLEEP);
140 mp->mnt_data = nmp;
152 kmem_free(nmp, sizeof(struct null_mount));
156 nmp->nullm_size = sizeof(struct null_node);
157 nmp->nullm_tag = VT_NULL;
158 nmp->nullm_bypass = layer_bypass;
159 nmp->nullm_vnodeop_p = null_vnodeop_p;
166 kmem_free(nmp, sizeof(struct null_mount));
175 nmp->nullm_rootvp = vp
191 struct null_mount *nmp = MOUNTTONULLMOUNT(mp); local in function:nullfs_unmount
    [all...]
  /src/sys/miscfs/overlay/
overlay_vfsops.c 107 struct overlay_mount *nmp; local in function:ov_mount
147 nmp = kmem_zalloc(sizeof(struct overlay_mount), KM_SLEEP);
149 mp->mnt_data = nmp;
159 kmem_free(nmp, sizeof(struct overlay_mount));
163 nmp->ovm_size = sizeof (struct overlay_node);
164 nmp->ovm_tag = VT_OVERLAY;
165 nmp->ovm_bypass = layer_bypass;
166 nmp->ovm_vnodeop_p = overlay_vnodeop_p;
178 kmem_free(nmp, sizeof(struct overlay_mount));
188 nmp->ovm_rootvp = vp
    [all...]
  /src/sys/fs/nfs/client/
nfs_clnfsiod.c 248 struct nfsmount *nmp; local in function:nfssvc_iod
258 while (((nmp = ncl_iodmount[myiod]) == NULL)
259 || !TAILQ_FIRST(&nmp->nm_bufq)) {
262 if (nmp)
263 nmp->nm_bufqiods--;
274 nmp = ncl_iodmount[myiod];
280 if (nmp && TAILQ_FIRST(&nmp->nm_bufq))
287 while ((bp = TAILQ_FIRST(&nmp->nm_bufq)) != NULL) {
289 TAILQ_REMOVE(&nmp->nm_bufq, bp, b_freelist)
    [all...]
nfs_clnode.c 106 struct nfsmount *nmp; local in function:ncl_nget
109 nmp = VFSTONFS(mntp);
156 if ((fhsize == nmp->nm_fhsize) &&
157 !bcmp(fhp, nmp->nm_fh, fhsize)) {
nfs_clsubs.c 183 struct nfsmount *nmp; local in function:ncl_getattrcache
188 nmp = VFSTONFS(vp->v_mount);
200 if ((np->n_flag & NMODIFIED) || timeo < nmp->nm_acdirmin)
201 timeo = nmp->nm_acdirmin;
202 else if (timeo > nmp->nm_acdirmax)
203 timeo = nmp->nm_acdirmax;
205 if ((np->n_flag & NMODIFIED) || timeo < nmp->nm_acregmin)
206 timeo = nmp->nm_acregmin;
207 else if (timeo > nmp->nm_acregmax)
208 timeo = nmp->nm_acregmax
    [all...]
nfs_clbio.c 85 struct nfsmount *nmp; local in function:ncl_getpages
94 nmp = VFSTONFS(vp->v_mount);
113 mtx_lock(&nmp->nm_mtx);
114 if ((nmp->nm_flag & NFSMNT_NFSV3) != 0 &&
115 (nmp->nm_state & NFSSTA_GOTFSINFO) == 0) {
116 mtx_unlock(&nmp->nm_mtx);
118 (void)ncl_fsinfo(nmp, vp, cred, td);
120 mtx_unlock(&nmp->nm_mtx);
232 struct nfsmount *nmp; local in function:ncl_putpages
244 nmp = VFSTONFS(vp->v_mount)
410 struct nfsmount *nmp = VFSTONFS(vp->v_mount); local in function:ncl_bioread
709 struct nfsmount *nmp = VFSTONFS(vp->v_mount); local in function:nfs_directio_write
852 struct nfsmount *nmp = VFSTONFS(vp->v_mount); local in function:ncl_write
1264 struct nfsmount *nmp; local in function:nfs_getcacheblk
1297 struct nfsmount *nmp = VFSTONFS(vp->v_mount); local in function:ncl_vinvalbuf
1569 struct nfsmount *nmp; local in function:ncl_doio
    [all...]
nfs_clport.c 140 struct nfsmount *nmp; local in function:nfscl_nget
142 nmp = VFSTONFS(mntp);
181 if ((nmp->nm_flag & NFSMNT_NFSV4) && np->n_v4 != NULL &&
245 if ((nfhp->nfh_len == nmp->nm_fhsize) &&
246 !bcmp(nfhp->nfh_fh, nmp->nm_fh, nfhp->nfh_len)) {
257 if (nmp->nm_flag & NFSMNT_NFSV4) {
371 nfscl_warn_fileid(struct nfsmount *nmp, struct nfsvattr *oldnap,
388 nmp->nm_com.nmcom_hostname,
389 (uintmax_t)nmp->nm_fsid[0],
390 (uintmax_t)nmp->nm_fsid[1]
416 struct nfsmount *nmp; local in function:nfscl_loadattrcache
948 struct nfsmount *nmp; local in function:nfscl_request
    [all...]
nfs_clvfsops.c 113 static void nfs_decode_args(struct mount *mp, struct nfsmount *nmp,
189 newnfs_iosize(struct nfsmount *nmp)
194 if (nmp->nm_flag & NFSMNT_NFSV4) {
196 } else if (nmp->nm_flag & NFSMNT_NFSV3) {
197 if (nmp->nm_sotype == SOCK_DGRAM)
204 if (nmp->nm_rsize > maxio || nmp->nm_rsize == 0)
205 nmp->nm_rsize = maxio;
206 if (nmp->nm_rsize > NFS_MAXBSIZE)
207 nmp->nm_rsize = NFS_MAXBSIZE
285 struct nfsmount *nmp = VFSTONFS(mp); local in function:nfs_statfs
1161 struct nfsmount *nmp = VFSTONFS(mp); local in function:nfs_mount
1368 struct nfsmount *nmp; local in function:mountnfs
1648 struct nfsmount *nmp; local in function:nfs_unmount
1714 struct nfsmount *nmp; local in function:nfs_root
1791 struct nfsmount *nmp = VFSTONFS(mp); local in function:nfs_sysctl
1861 struct nfsmount *nmp = VFSTONFS(mp); local in function:nfs_purge
1874 struct nfsmount *nmp; local in function:nfs_getnlminfo
    [all...]
nfs_clstate.c 736 struct nfsmount *nmp; local in function:nfscl_getcl
741 nmp = VFSTONFS(mp);
765 clp = nmp->nm_clp;
784 nfscl_fillclid(nmp->nm_clval, uuid, clp->nfsc_id,
787 nmp->nm_clp = clp;
788 clp->nfsc_nmp = nmp;
851 error = nfsrpc_setclient(nmp, clp, 0, cred, p);
884 nfscl_findcl(struct nfsmount *nmp)
888 clp = nmp->nm_clp;
1434 struct nfsmount *nmp, struct ucred *cred, NFSPROC_T *p
1886 struct nfsmount *nmp; local in function:nfscl_recover
2208 struct nfsmount *nmp; local in function:nfscl_hasexpired
4210 struct nfsmount *nmp; local in function:nfscl_mustflush
4244 struct nfsmount *nmp; local in function:nfscl_nodeleg
4278 struct nfsmount *nmp; local in function:nfscl_removedeleg
4375 struct nfsmount *nmp; local in function:nfscl_renamedeleg
4547 struct nfsmount *nmp; local in function:nfscl_reclaimnode
4574 struct nfsmount *nmp; local in function:nfscl_newnode
4601 struct nfsmount *nmp; local in function:nfscl_delegmodtime
4630 struct nfsmount *nmp; local in function:nfscl_deleggetmodtime
5188 struct nfsmount *nmp; local in function:nfscl_layoutcommit
    [all...]
nfs_clvnops.c 277 * nmp->nm_mtx : Protects the fields in the nfsmount.
281 nmp->nm_mtx
1039 struct nfsmount *nmp; local in function:nfs_lookup
1054 nmp = VFSTONFS(mp);
1059 while (NFSHASNFSV4(nmp) && (np->n_flag & NREMOVEINPROG)) {
1102 if (!(nmp->nm_flag & NFSMNT_NOCTO) &&
1111 ((u_int)(ticks - ncticks) < (nmp->nm_nametimeo * hz) &&
1138 if ((u_int)(ticks - ncticks) < (nmp->nm_negnametimeo * hz) &&
1366 struct nfsmount *nmp; local in function:ncl_readrpc
1368 nmp = VFSTONFS(vnode_mount(vp))
1397 struct nfsmount *nmp; local in function:ncl_writerpc
1539 struct nfsmount *nmp; local in function:nfs_create
2275 struct nfsmount *nmp = VFSTONFS(vp->v_mount); local in function:ncl_readdirrpc
2335 struct nfsmount *nmp = VFSTONFS(vp->v_mount); local in function:ncl_readdirplusrpc
2558 struct nfsmount *nmp = VFSTONFS(vp->v_mount); local in function:ncl_commit
2645 struct nfsmount *nmp = VFSTONFS(vp->v_mount); local in function:ncl_flush
    [all...]
nfs_clrpcops.c 268 struct nfsmount *nmp = VFSTONFS(vnode_mount(vp)); local in function:nfsrpc_open
302 if (nmp->nm_clp != NULL)
303 clidrev = nmp->nm_clp->nfsc_clientidrev;
308 error = nfsrpc_openrpc(nmp, vp, np->n_v4->n4_data,
329 (void) nfscl_deleg(nmp->nm_mountp,
361 expireret = nfscl_hasexpired(nmp->nm_clp, clidrev, p);
378 nfsrpc_openrpc(struct nfsmount *nmp, vnode_t vp, u_int8_t *nfhp, int fhlen,
394 nfscl_reqstart(nd, NFSPROC_OPEN, nmp, nfhp, fhlen, NULL, NULL);
399 *tl++ = NFSMNT_MDSSESSION(nmp)->nfsess_clientid.lval[0];
400 *tl = NFSMNT_MDSSESSION(nmp)->nfsess_clientid.lval[1]
785 struct nfsmount *nmp; local in function:nfsrpc_openconfirm
1074 struct nfsmount *nmp = VFSTONFS(vnode_mount(vp)); local in function:nfsrpc_setattr
1194 struct nfsmount *nmp; local in function:nfsrpc_lookup
1352 struct nfsmount *nmp = VFSTONFS(vnode_mount(vp)); local in function:nfsrpc_read
1412 struct nfsmount *nmp = VFSTONFS(vnode_mount(vp)); local in function:nfsrpc_readrpc
1504 struct nfsmount *nmp = VFSTONFS(vnode_mount(vp)); local in function:nfsrpc_write
1581 struct nfsmount *nmp = VFSTONFS(vnode_mount(vp)); local in function:nfsrpc_writerpc
1847 struct nfsmount *nmp = VFSTONFS(vnode_mount(dvp)); local in function:nfsrpc_create
1968 struct nfsmount *nmp; local in function:nfsrpc_createv4
2205 struct nfsmount *nmp; local in function:nfsrpc_remove
2282 struct nfsmount *nmp; local in function:nfsrpc_rename
2503 struct nfsmount *nmp; local in function:nfsrpc_symlink
2567 struct nfsmount *nmp; local in function:nfsrpc_mkdir
2703 struct nfsmount *nmp = VFSTONFS(vnode_mount(vp)); local in function:nfsrpc_readdir
3137 struct nfsmount *nmp = VFSTONFS(vnode_mount(vp)); local in function:nfsrpc_readdirplus
3623 struct nfsmount *nmp = VFSTONFS(vnode_mount(vp)); local in function:nfsrpc_commit
3674 struct nfsmount *nmp = VFSTONFS(vnode_mount(vp)); local in function:nfsrpc_advlock
3842 struct nfsmount *nmp; local in function:nfsrpc_lockt
4053 struct nfsmount *nmp; local in function:nfsrpc_statfs
4131 struct nfsmount *nmp; local in function:nfsrpc_pathconf
4232 struct nfsmount *nmp; local in function:nfsrpc_renew
4409 struct nfsmount *nmp = VFSTONFS(vnode_mount(vp)); local in function:nfsrpc_getacl
4437 struct nfsmount *nmp = VFSTONFS(vnode_mount(vp)); local in function:nfsrpc_setacl
4455 struct nfsmount *nmp = VFSTONFS(vnode_mount(vp)); local in function:nfsrpc_setaclrpc
5455 struct nfsmount *nmp = VFSTONFS(vnode_mount(vp)); local in function:nfscl_doiods
5688 struct nfsmount *nmp = VFSTONFS(vnode_mount(vp)); local in function:nfsrpc_readds
5729 struct nfsmount *nmp = VFSTONFS(vnode_mount(vp)); local in function:nfsrpc_writeds
5895 struct nfsmount *nmp = VFSTONFS(vnode_mount(vp)); local in function:nfsrpc_commitds
    [all...]
  /src/sys/fs/nfs/common/
nfs_lock.c 245 struct nfsmount *nmp; local in function:nfs_dolock
253 nmp = VFSTONFS(vp->v_mount);
257 nmp->nm_getinfo(vp, msg.lm_fh, &msg.lm_fh_len, &msg.lm_addr,
nfs_commonkrpc.c 166 newnfs_connect(struct nfsmount *nmp, struct nfssockreq *nrp,
240 if (nmp != NULL) {
251 if (nmp != NULL) {
271 if (nmp != NULL) {
272 if ((nmp->nm_flag & NFSMNT_INT))
274 if ((nmp->nm_flag & NFSMNT_RESVPORT))
276 if (NFSHASSOFT(nmp)) {
277 if (nmp->nm_sotype == SOCK_DGRAM)
286 retries = nmp->nm_retry;
289 if (NFSHASNFSV4N(nmp)) {
451 struct nfsmount *nmp = nf->nf_mount; local in function:nfs_feedback
    [all...]
  /src/sys/nfs/
nfs_clntsubs.c 320 struct nfsmount *nmp = VFSTONFS(vp->v_mount); local in function:nfs_getattrcache
324 (time_second - np->n_attrstamp) >= nfs_attrtimeo(nmp, np)) {
371 #define NFS_WCCKLUDGE(nmp, now) \
372 (((nmp)->nm_iflag & NFSMNT_WCCKLUDGE) && \
373 ((now) - (nmp)->nm_wcckludgetime - NFS_WCCKLUDGE_TIMEOUT) < 0)
392 struct nfsmount *nmp; local in function:nfs_check_wccdata
408 nmp = VFSTONFS(vp->v_mount);
425 mutex_enter(&nmp->nm_lock);
426 if (!NFS_WCCKLUDGE(nmp, now)) {
442 nmp->nm_iflag |= NFSMNT_WCCKLUDGE
    [all...]
nfs_iod.c 101 struct nfsmount *nmp; local in function:nfssvc_iod
119 nmp = myiod->nid_mount;
120 if (nmp) {
148 mutex_enter(&nmp->nm_lock);
149 while ((bp = TAILQ_FIRST(&nmp->nm_bufq)) != NULL) {
151 TAILQ_REMOVE(&nmp->nm_bufq, bp, b_freelist);
152 nmp->nm_bufqlen--;
153 if (nmp->nm_bufqlen < 2 * nmp->nm_bufqiods) {
154 cv_broadcast(&nmp->nm_aiocv)
    [all...]
nfs_clntsocket.c 323 struct nfsmount *nmp = myrep->r_nmp; local in function:nfs_reply
340 error = nfs_rcvlock(nmp, myrep);
349 mutex_enter(&nmp->nm_lock);
350 nmp->nm_waiters++;
351 mutex_exit(&nmp->nm_lock);
355 mutex_enter(&nmp->nm_lock);
356 nmp->nm_waiters--;
357 cv_signal(&nmp->nm_disconcv);
358 mutex_exit(&nmp->nm_lock);
361 nfs_rcvunlock(nmp);
507 struct nfsmount *nmp = VFSTONFS(np->n_vnode->v_mount); local in function:nfs_request
    [all...]
nfs_bio.c 86 struct nfsmount *nmp = VFSTONFS(vp->v_mount); local in function:nfs_bioread
105 if ((nmp->nm_flag & NFSMNT_NFSV3) &&
106 !(nmp->nm_iflag & NFSMNT_GOTFSINFO))
107 (void)nfs_fsinfo(nmp, vp, cred, l);
110 (uio->uio_offset + uio->uio_resid) > nmp->nm_maxfilesize)
199 (nmp->nm_flag & NFSMNT_XLATECOOKIE), 0);
211 if (nmp->nm_flag & NFSMNT_XLATECOOKIE)
338 if (nmp->nm_flag & NFSMNT_XLATECOOKIE) {
361 if (nmp->nm_flag & NFSMNT_XLATECOOKIE) {
374 if (nmp->nm_flag & NFSMNT_XLATECOOKIE)
453 struct nfsmount *nmp = VFSTONFS(vp->v_mount); local in function:nfs_write
588 struct nfsmount *nmp = VFSTONFS(vp->v_mount); local in function:nfs_getcacheblk
611 struct nfsmount *nmp = VFSTONFS(vp->v_mount); local in function:nfs_vinvalbuf
736 struct nfsmount *nmp; local in function:nfs_asyncio
862 struct nfsmount *nmp = VFSTONFS(vp->v_mount); local in function:nfs_doio_read
942 struct nfsmount *nmp = VFSTONFS(vp->v_mount); local in function:nfs_doio_write
1175 struct nfsmount *nmp = VFSTONFS(vp->v_mount); local in function:nfs_doio_phys
    [all...]
nfs_vfsops.c 168 struct nfsmount *nmp = VFSTONFS(mp); local in function:nfs_statvfs
173 int v3 = (nmp->nm_flag & NFSMNT_NFSV3);
183 vp = nmp->nm_vnode;
187 if (v3 && (nmp->nm_iflag & NFSMNT_GOTFSINFO) == 0)
188 (void)nfs_fsinfo(nmp, vp, cred, l);
205 sbp->f_flag = nmp->nm_flag;
206 sbp->f_iosize = uimin(nmp->nm_rsize, nmp->nm_wsize);
249 nfs_fsinfo(struct nfsmount *nmp, struct vnode *vp, kauth_cred_t cred, struct lwp *l)
269 if ((nmp->nm_flag & NFSMNT_WSIZE) == 0 &
579 struct nfsmount *nmp = VFSTONFS(mp); local in function:nfs_mount
685 struct nfsmount *nmp; local in function:mountnfs
834 struct nfsmount *nmp = VFSTONFS(mp); local in function:nfs_unmount
932 struct nfsmount *nmp; local in function:nfs_root
    [all...]
nfs_socket.c 182 nfs_connect(struct nfsmount *nmp, struct nfsreq *rep, struct lwp *l)
191 nmp->nm_so = NULL;
192 saddr = mtod(nmp->nm_nam, struct sockaddr *);
193 error = socreate(saddr->sa_family, &nmp->nm_so,
194 nmp->nm_sotype, nmp->nm_soproto, l, NULL);
197 so = nmp->nm_so;
203 nmp->nm_soflags = so->so_proto->pr_flags;
208 if (saddr->sa_family == AF_INET && (nmp->nm_flag & NFSMNT_RESVPORT)) {
222 if (saddr->sa_family == AF_INET6 && (nmp->nm_flag & NFSMNT_RESVPORT))
352 struct nfsmount *nmp = rep->r_nmp; local in function:nfs_reconnect
758 struct nfsmount *nmp; local in function:nfs_timer
    [all...]
nfs_subs.c 1331 struct nfsmount *nmp = VFSTONFS(vp->v_mount); local in function:nfs_enterdircache
1350 if ((nmp->nm_flag & NFSMNT_XLATECOOKIE) && !np->n_dirgens)
1382 if (nmp->nm_flag & NFSMNT_XLATECOOKIE) {
1435 struct nfsmount *nmp = VFSTONFS(vp->v_mount); local in function:nfs_invaldircache
1450 if (!(nmp->nm_flag & NFSMNT_XLATECOOKIE) || forcefree) {
1780 struct nfsmount *nmp = VFSTONFS(mp); local in function:nfs_clearcommit
1787 rw_enter(&nmp->nm_writeverflock, RW_WRITER);
1815 mutex_enter(&nmp->nm_lock);
1816 nmp->nm_iflag &= ~NFSMNT_STALEWRITEVERF;
1817 mutex_exit(&nmp->nm_lock)
    [all...]
nfs_vnops.c 292 struct nfsmount *nmp = VFSTONFS(vp->v_mount); local in function:nfs_access
295 (time_uptime - np->n_accstamp) < nfs_attrtimeo(nmp, np) &&
1125 struct nfsmount *nmp; local in function:nfs_readrpc
1136 nmp = VFSTONFS(vp->v_mount);
1138 if (uiop->uio_offset + tsiz > nmp->nm_maxfilesize)
1140 iostat_busy(nmp->nm_stats);
1144 len = (tsiz > nmp->nm_rsize) ? nmp->nm_rsize : tsiz;
1172 nfsm_strsiz(retlen, nmp->nm_rsize);
1187 iostat_unbusy(nmp->nm_stats, byte_count, 1)
1227 struct nfsmount *nmp = VFSTONFS(vp->v_mount); local in function:nfs_writerpc
2292 struct nfsmount *nmp = VFSTONFS(vp->v_mount); local in function:nfs_readdir
2377 struct nfsmount *nmp = VFSTONFS(vp->v_mount); local in function:nfs_readdirrpc
2604 struct nfsmount *nmp = VFSTONFS(vp->v_mount); local in function:nfs_readdirplusrpc
2991 struct nfsmount *nmp = VFSTONFS(vp->v_mount); local in function:nfs_commit
3163 struct nfsmount *nmp; local in function:nfs_pathconf
    [all...]
  /src/sys/fs/nfs/nlm/
nlm_advlock.c 134 struct nfsmount *nmp = nf->nf_nmp; local in function:nlm_down
136 if (nmp == NULL)
138 mtx_lock(&nmp->nm_mtx);
139 if (!(nmp->nm_state & NFSSTA_LOCKTIMEO)) {
140 nmp->nm_state |= NFSSTA_LOCKTIMEO;
141 mtx_unlock(&nmp->nm_mtx);
142 vfs_event_signal(&nmp->nm_mountp->mnt_stat.f_fsid,
145 mtx_unlock(&nmp->nm_mtx);
149 nlm_msg(td, nmp->nm_mountp->mnt_stat.f_mntfromname, msg, error);
156 struct nfsmount *nmp = nf->nf_nmp local in function:nlm_up
201 struct nfsmount *nmp; local in function:nlm_advlock_internal
    [all...]
  /src/sys/kern/
vfs_mount.c 1058 struct mount *mp, *nmp; local in function:vfs_unmount_next
1060 nmp = NULL;
1064 if ((nmp == NULL || mp->mnt_gen > nmp->mnt_gen) &&
1066 if (nmp != NULL)
1067 vfs_rele(nmp);
1068 nmp = mp;
1069 vfs_ref(nmp);
1074 return nmp;

Completed in 26 milliseconds