Lines Matching refs:fs
987 struct fs_struct *fs = current->fs; in copy_fs() local
990 spin_lock(&fs->lock); in copy_fs()
991 if (fs->in_exec) { in copy_fs()
992 spin_unlock(&fs->lock); in copy_fs()
995 fs->users++; in copy_fs()
996 spin_unlock(&fs->lock); in copy_fs()
999 tsk->fs = copy_fs_struct(fs); in copy_fs()
1000 if (!tsk->fs) in copy_fs()
1883 struct fs_struct *fs = current->fs; in unshare_fs() local
1885 if (!(unshare_flags & CLONE_FS) || !fs) in unshare_fs()
1889 if (fs->users == 1) in unshare_fs()
1892 *new_fsp = copy_fs_struct(fs); in unshare_fs()
1927 struct fs_struct *fs, *new_fs = NULL; in SYSCALL_DEFINE1() local
1998 fs = current->fs; in SYSCALL_DEFINE1()
1999 spin_lock(&fs->lock); in SYSCALL_DEFINE1()
2000 current->fs = new_fs; in SYSCALL_DEFINE1()
2001 if (--fs->users) in SYSCALL_DEFINE1()
2004 new_fs = fs; in SYSCALL_DEFINE1()
2005 spin_unlock(&fs->lock); in SYSCALL_DEFINE1()