Lines Matching refs:mp
93 union_mount(mount_t mp, __unused vnode_t devvp, user_addr_t data, vfs_context_t context)
109 printf("union_mount(mp = %x)\n", mp);
115 if (mp->mnt_flag & MNT_UPDATE) {
140 lowerrootvp = mp->mnt_vnodecovered;
215 if ((um->um_op != UNMNT_FAULTIN) && (mp->mnt_flag & MNT_RDONLY) == 0)
217 if ((mp->mnt_flag & MNT_RDONLY) == 0)
242 mp->mnt_flag |= MNT_LOCAL;
252 mp->mnt_flag |= (um->um_uppervp->v_mount->mnt_flag & MNT_RDONLY);
254 mp->mnt_data = (qaddr_t) um;
255 vfs_getnewfsid(mp);
275 bcopy(cp, mp->mnt_vfsstat.f_mntfromname, len);
277 vcp = mp->mnt_vfsstat.f_mntfromname + len;
284 mp->mnt_vtable->vfc_threadsafe = TRUE;
288 mp->mnt_vfsstat.f_mntfromname, mp->mnt_vfsstat.f_mntonname);
310 union_start(__unused struct mount *mp, __unused int flags, __unused vfs_context_t context)
331 union_unmount(mount_t mp, int mntflags, vfs_context_t context)
333 struct union_mount *um = MOUNTTOUNIONMOUNT(mp);
340 printf("union_unmount(mp = %x)\n", mp);
346 if ((error = union_root(mp, &um_rootvp, context)))
358 for (freeing = 0; vflush(mp, um_rootvp, flags) != 0;) {
361 vnode_iterate(mp, VNODE_NOLOCK_INTERNAL, union_itercallback, &n);
400 _FREE(mp->mnt_data, M_UFSMNT); /* XXX */
401 mp->mnt_data = NULL;
406 union_root(mount_t mp, vnode_t *vpp, __unused vfs_context_t context)
408 struct union_mount *um = MOUNTTOUNIONMOUNT(mp);
419 error = union_allocvp(vpp, mp,
438 union_vfs_getattr(mount_t mp, struct vfs_attr *fsap, vfs_context_t context)
441 struct union_mount *um = MOUNTTOUNIONMOUNT(mp);
446 printf("union_vfs_getattr(mp = %x, lvp = %x, uvp = %x)\n", mp,