Lines Matching refs:mp
75 nullfs_mount(struct mount *mp) in nullfs_mount() argument
86 NULLFSDEBUG("nullfs_mount(mp = %p)\n", (void *)mp); in nullfs_mount()
88 if (mp->mnt_flag & MNT_ROOTFS) in nullfs_mount()
94 if (mp->mnt_flag & MNT_UPDATE) { in nullfs_mount()
98 if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0)) in nullfs_mount()
107 error = vfs_getopt(mp->mnt_optnew, "target", (void **)&target, &len); in nullfs_mount()
114 if (mp->mnt_vnodecovered->v_op == &null_vnodeops && in nullfs_mount()
115 VOP_ISLOCKED(mp->mnt_vnodecovered) == LK_EXCLUSIVE) { in nullfs_mount()
116 VOP_UNLOCK(mp->mnt_vnodecovered, 0); in nullfs_mount()
134 vn_lock(mp->mnt_vnodecovered, LK_EXCLUSIVE | LK_RETRY); in nullfs_mount()
148 if (mp->mnt_vnodecovered->v_op == &null_vnodeops) { in nullfs_mount()
149 nn = VTONULL(mp->mnt_vnodecovered); in nullfs_mount()
167 mp->mnt_data = xmp; in nullfs_mount()
172 error = null_nodeget(mp, lowerrootvp, &nullm_rootvp); in nullfs_mount()
180 MNT_ILOCK(mp); in nullfs_mount()
181 mp->mnt_flag |= MNT_LOCAL; in nullfs_mount()
182 MNT_IUNLOCK(mp); in nullfs_mount()
186 if (vfs_getopt(mp->mnt_optnew, "nocache", NULL, NULL) == 0 || in nullfs_mount()
190 MNT_ILOCK(mp); in nullfs_mount()
192 mp->mnt_kern_flag |= lowerrootvp->v_mount->mnt_kern_flag & in nullfs_mount()
196 mp->mnt_kern_flag |= MNTK_LOOKUP_EXCL_DOTDOT; in nullfs_mount()
197 mp->mnt_kern_flag |= lowerrootvp->v_mount->mnt_kern_flag & in nullfs_mount()
199 MNT_IUNLOCK(mp); in nullfs_mount()
200 vfs_getnewfsid(mp); in nullfs_mount()
203 TAILQ_INSERT_TAIL(&xmp->nullm_vfs->mnt_uppers, mp, in nullfs_mount()
208 vfs_mountedfrom(mp, target); in nullfs_mount()
212 mp->mnt_stat.f_mntfromname, mp->mnt_stat.f_mntonname); in nullfs_mount()
220 nullfs_unmount(mp, mntflags) in nullfs_unmount() argument
221 struct mount *mp; in nullfs_unmount()
228 NULLFSDEBUG("nullfs_unmount: mp = %p\n", (void *)mp);
237 error = vflush(mp, 0, flags, curthread);
240 MNT_ILOCK(mp);
241 if (mp->mnt_nvnodelistsize == 0) {
242 MNT_IUNLOCK(mp);
245 MNT_IUNLOCK(mp);
253 mntdata = mp->mnt_data;
261 TAILQ_REMOVE(&ump->mnt_uppers, mp, mnt_upper_link);
265 mp->mnt_data = NULL;
271 nullfs_root(mp, flags, vpp) in nullfs_root() argument
272 struct mount *mp; in nullfs_root()
280 mntdata = MOUNTTONULLMOUNT(mp);
281 NULLFSDEBUG("nullfs_root(mp = %p, vp = %p)\n", mp,
287 error = null_nodeget(mp, mntdata->nullm_lowerrootvp, &vp);
298 nullfs_quotactl(mp, cmd, uid, arg) in nullfs_quotactl() argument
299 struct mount *mp; in nullfs_quotactl()
304 return VFS_QUOTACTL(MOUNTTONULLMOUNT(mp)->nullm_vfs, cmd, uid, arg);
308 nullfs_statfs(mp, sbp) in nullfs_statfs() argument
309 struct mount *mp; in nullfs_statfs()
315 NULLFSDEBUG("nullfs_statfs(mp = %p, vp = %p->%p)\n", (void *)mp,
316 (void *)MOUNTTONULLMOUNT(mp)->nullm_rootvp,
317 (void *)NULLVPTOLOWERVP(MOUNTTONULLMOUNT(mp)->nullm_rootvp));
321 error = VFS_STATFS(MOUNTTONULLMOUNT(mp)->nullm_vfs, mstat);
345 nullfs_sync(mp, waitfor) in nullfs_sync() argument
346 struct mount *mp; in nullfs_sync()
356 nullfs_vget(mp, ino, flags, vpp) in nullfs_vget() argument
357 struct mount *mp; in nullfs_vget()
367 error = VFS_VGET(MOUNTTONULLMOUNT(mp)->nullm_vfs, ino, flags, vpp);
370 return (null_nodeget(mp, *vpp, vpp));
374 nullfs_fhtovp(mp, fidp, flags, vpp) in nullfs_fhtovp() argument
375 struct mount *mp; in nullfs_fhtovp()
382 error = VFS_FHTOVP(MOUNTTONULLMOUNT(mp)->nullm_vfs, fidp, flags,
386 return (null_nodeget(mp, *vpp, vpp));
390 nullfs_extattrctl(mp, cmd, filename_vp, namespace, attrname) in nullfs_extattrctl() argument
391 struct mount *mp; in nullfs_extattrctl()
398 return (VFS_EXTATTRCTL(MOUNTTONULLMOUNT(mp)->nullm_vfs, cmd,
403 nullfs_reclaim_lowervp(struct mount *mp, struct vnode *lowervp) in nullfs_reclaim_lowervp() argument
407 vp = null_hashget(mp, lowervp); in nullfs_reclaim_lowervp()
416 nullfs_unlink_lowervp(struct mount *mp, struct vnode *lowervp) in nullfs_unlink_lowervp() argument
421 vp = null_hashget(mp, lowervp); in nullfs_unlink_lowervp()