Lines Matching defs:mount

810 static int tmpfs_rename_enter(struct mount *, struct tmpfs_mount *,
816 static int tmpfs_rename_enter_common(struct mount *, struct tmpfs_mount *,
821 static int tmpfs_rename_enter_separate(struct mount *, struct tmpfs_mount *,
832 static int tmpfs_rename_lock(struct mount *, kauth_cred_t, int,
943 struct mount *mount;
981 mount = fdvp->v_mount;
982 KASSERT(mount != NULL);
983 KASSERT(mount == tdvp->v_mount);
985 * likely to mount a tmpfs read-only...) */
986 KASSERT((mount->mnt_flag & MNT_RDONLY) == 0);
987 tmpfs = VFS_TO_TMPFS(mount);
1012 error = tmpfs_rename_enter(mount, tmpfs, cred,
1165 tmpfs_rename_enter(struct mount *mount, struct tmpfs_mount *tmpfs,
1174 KASSERT(mount != NULL);
1193 error = tmpfs_rename_enter_common(mount, tmpfs, cred, fdvp,
1197 error = tmpfs_rename_enter_separate(mount, tmpfs, cred,
1227 tmpfs_rename_enter_common(struct mount *mount, struct tmpfs_mount *tmpfs,
1243 /* Did we lose a race with mount? */
1272 error = tmpfs_vnode_get(mount, fde->td_node, &fvp);
1278 KASSERT(fvp->v_mount == mount);
1280 /* Refuse to rename a mount point. */
1297 error = tmpfs_vnode_get(mount, tde->td_node, &tvp);
1300 KASSERT(tvp->v_mount == mount);
1301 /* Refuse to rename over a mount point. */
1338 tmpfs_rename_enter_separate(struct mount *mount, struct tmpfs_mount *tmpfs,
1366 error = tmpfs_rename_lock(mount, cred, ENOTEMPTY,
1370 error = tmpfs_rename_lock(mount, cred, EINVAL,
1560 tmpfs_rename_lock(struct mount *mount, kauth_cred_t cred, int overlap_error,
1594 /* Did we lose a race with mount? */
1618 error = tmpfs_vnode_get(mount, a_dirent->td_node, &a_vp);
1621 KASSERT(a_vp->v_mount == mount);
1622 /* Refuse to rename (over) a mount point. */
1640 /* Did we lose a race with mount? */
1665 error = tmpfs_vnode_get(mount, b_dirent->td_node,
1669 KASSERT(b_vp->v_mount == mount);
1671 /* Refuse to rename (over) a mount point. */