Lines Matching refs:fs
318 if (mnt == current->fs->rootmnt && !(flags & MNT_DETACH)) { in do_umount()
754 struct fs_struct *fs = tsk->fs; in copy_namespace() local
786 if (fs) { in copy_namespace()
788 write_lock(&fs->lock); in copy_namespace()
793 if (p == fs->rootmnt) { in copy_namespace()
795 fs->rootmnt = mntget(q); in copy_namespace()
797 if (p == fs->pwdmnt) { in copy_namespace()
799 fs->pwdmnt = mntget(q); in copy_namespace()
801 if (p == fs->altrootmnt) { in copy_namespace()
803 fs->altrootmnt = mntget(q); in copy_namespace()
808 write_unlock(&fs->lock); in copy_namespace()
873 struct fs_struct *fs; in chroot_fs_refs() local
878 fs = p->fs; in chroot_fs_refs()
879 if (fs) { in chroot_fs_refs()
880 atomic_inc(&fs->count); in chroot_fs_refs()
882 if (fs->root==old_nd->dentry&&fs->rootmnt==old_nd->mnt) in chroot_fs_refs()
883 set_fs_root(fs, new_nd->mnt, new_nd->dentry); in chroot_fs_refs()
884 if (fs->pwd==old_nd->dentry&&fs->pwdmnt==old_nd->mnt) in chroot_fs_refs()
885 set_fs_pwd(fs, new_nd->mnt, new_nd->dentry); in chroot_fs_refs()
886 put_fs_struct(fs); in chroot_fs_refs()
928 read_lock(¤t->fs->lock); in sys_pivot_root()
929 user_nd.mnt = mntget(current->fs->rootmnt); in sys_pivot_root()
930 user_nd.dentry = dget(current->fs->root); in sys_pivot_root()
931 read_unlock(¤t->fs->lock); in sys_pivot_root()
1016 set_fs_pwd(current->fs, namespace->root, namespace->root->mnt_root); in init_mount_tree()
1017 set_fs_root(current->fs, namespace->root, namespace->root->mnt_root); in init_mount_tree()