Lines Matching refs:fs
996 struct fs_struct *fs = current->fs; in copy_fs() local
999 spin_lock(&fs->lock); in copy_fs()
1000 if (fs->in_exec) { in copy_fs()
1001 spin_unlock(&fs->lock); in copy_fs()
1004 fs->users++; in copy_fs()
1005 spin_unlock(&fs->lock); in copy_fs()
1008 tsk->fs = copy_fs_struct(fs); in copy_fs()
1009 if (!tsk->fs) in copy_fs()
1914 struct fs_struct *fs = current->fs; in unshare_fs() local
1916 if (!(unshare_flags & CLONE_FS) || !fs) in unshare_fs()
1920 if (fs->users == 1) in unshare_fs()
1923 *new_fsp = copy_fs_struct(fs); in unshare_fs()
1958 struct fs_struct *fs, *new_fs = NULL; in SYSCALL_DEFINE1() local
2030 fs = current->fs; in SYSCALL_DEFINE1()
2031 spin_lock(&fs->lock); in SYSCALL_DEFINE1()
2032 current->fs = new_fs; in SYSCALL_DEFINE1()
2033 if (--fs->users) in SYSCALL_DEFINE1()
2036 new_fs = fs; in SYSCALL_DEFINE1()
2037 spin_unlock(&fs->lock); in SYSCALL_DEFINE1()