Lines Matching defs:mount
68 #include <sys/mount.h>
591 vn_alloc_marker(struct mount *mp)
839 * Mark a mount point as busy. Used to synchronize access and to delay
843 * vfs_busy() only sleeps if the unmount is active on the mount point.
847 * Lookup uses vfs_busy() to traverse mount points.
880 vfs_busy(struct mount *mp, int flags)
903 * If mount point is currently being unmounted, sleep until the
904 * mount point fate is decided. If thread doing the unmounting fails,
906 * that this mount point has survived the unmount attempt and vfs_busy
908 * flag in addition to MNTK_UNMOUNT, indicating that mount point is
910 * reference on the mount point in this case and return with ENOENT,
911 * telling the caller the mount it tried to busy is no longer valid.
915 ("%s: non-empty upper mount list with pending unmount",
943 vfs_unbusy(struct mount *mp)
979 * Lookup a mount point by filesystem identifier.
981 struct mount *
984 struct mount *mp;
997 return ((struct mount *) 0);
1001 * Lookup a mount point by filesystem identifier, busying it before
1006 * the fact that struct mount's are never freed. In worst case we may
1010 struct mount *
1014 typedef struct mount * volatile vmp_t;
1016 struct mount *mp;
1051 return ((struct mount *) 0);
1055 * Check if a user can access privileged mount options.
1058 vfs_suser(struct mount *mp, struct thread *td)
1082 * If this is not the user that did original mount, we check for
1106 vfs_getnewfsid(struct mount *mp)
1109 struct mount *nmp;
1243 struct mount *mp;
1369 struct mount *mp;
1415 * of mount point. Note that mp is type-safe, the
1907 struct mount *vnmp;
1984 vn_alloc_hard(struct mount *mp, u_long rnumvnodes, bool bumped)
2038 vn_alloc(struct mount *mp)
2064 getnewvnode(const char *tag, struct mount *mp, struct vop_vector *vops,
2237 * Delete from old mount point vnode list, if on one.
2242 struct mount *mp;
2251 ("bad mount point vnode list size"));
2263 insmntque1_int(struct vnode *vp, struct mount *mp, bool dtr)
2267 ("insmntque: vnode already on per mount vnode list"));
2281 * and the active vnode list. The mount mutex protects only
2306 ("neg mount point vnode list size"));
2314 * Insert into list of vnodes for the new mount point, if available.
2319 insmntque(struct vnode *vp, struct mount *mp)
2325 insmntque1(struct vnode *vp, struct mount *mp)
2950 struct mount *mp;
3435 struct mount *mp;
3459 struct mount *mp;
3488 struct mount *mp;
4126 * Remove any vnodes in the vnode table belonging to mount point mp.
4151 vflush(struct mount *mp, int rootrefs, int flags, struct thread *td)
4315 struct mount *mp;
4356 struct mount *mp;
4484 * Delete from old mount point vnode list.
4670 struct mount *mp;
4702 * Show details about the given mount point.
4704 DB_SHOW_COMMAND(mount, db_show_mount)
4706 struct mount *mp;
4715 /* No address given, print short info about all mount points. */
4724 db_printf("\nMore info: show mount <addr>\n");
4728 mp = (struct mount *)addr;
5052 unmount_or_warn(struct mount *mp)
5073 struct mount *mp, *tmp;
5125 vfs_periodic_inactive(struct mount *mp, int flags)
5171 vfs_periodic_msync_inactive(struct mount *mp, int flags)
5212 vfs_periodic(struct mount *mp, int flags)
5324 * Create a new filesystem syncer vnode for the specified mount point.
5327 vfs_allocate_syncvnode(struct mount *mp)
5383 vfs_deallocate_syncvnode(struct mount *mp)
5403 struct mount *mp = syncvp->v_mount;
5918 * is actually determined by vp's write mount as indicated
6517 struct mount *mp;
6804 vfs_cache_root_fallback(struct mount *mp, int flags, struct vnode **vpp)
6864 vfs_cache_root(struct mount *mp, int flags, struct vnode **vpp)
6889 vfs_cache_root_clear(struct mount *mp)
6905 vfs_cache_root_set(struct mount *mp, struct vnode *vp)
6915 * their vnodes. See MNT_VNODE_FOREACH_ALL() in sys/mount.h.
6921 __mnt_vnode_next_all(struct vnode **mvp, struct mount *mp)
6927 KASSERT((*mvp)->v_mount == mp, ("marker vnode mount list mismatch"));
6953 __mnt_vnode_first_all(struct vnode **mvp, struct mount *mp)
6985 __mnt_vnode_markerfree_all(struct vnode **mvp, struct mount *mp)
6995 KASSERT((*mvp)->v_mount == mp, ("marker vnode mount list mismatch"));
7005 * lazy vnodes. See MNT_VNODE_FOREACH_LAZY() in sys/mount.h
7008 mnt_vnode_markerfree_lazy(struct vnode **mvp, struct mount *mp)
7011 KASSERT((*mvp)->v_mount == mp, ("marker vnode mount list mismatch"));
7021 * Relock the mp mount vnode list lock with the vp vnode interlock in the
7024 * On entry, the mount vnode list lock is held and the vnode interlock is not.
7026 * On failure, the mount vnode list lock is held but the vnode interlock is
7030 mnt_vnode_next_lazy_relock(struct vnode *mvp, struct mount *mp,
7074 mnt_vnode_next_lazy(struct vnode **mvp, struct mount *mp, mnt_lazy_cb_t *cb,
7080 KASSERT((*mvp)->v_mount == mp, ("marker vnode mount list mismatch"));
7136 __mnt_vnode_next_lazy(struct vnode **mvp, struct mount *mp, mnt_lazy_cb_t *cb,
7146 __mnt_vnode_first_lazy(struct vnode **mvp, struct mount *mp, mnt_lazy_cb_t *cb,
7171 __mnt_vnode_markerfree_lazy(struct vnode **mvp, struct mount *mp)