Lines Matching refs:fs
1497 struct fs_struct *fs = current->fs; in copy_fs() local
1500 spin_lock(&fs->lock); in copy_fs()
1501 if (fs->in_exec) { in copy_fs()
1502 spin_unlock(&fs->lock); in copy_fs()
1505 fs->users++; in copy_fs()
1506 spin_unlock(&fs->lock); in copy_fs()
1509 tsk->fs = copy_fs_struct(fs); in copy_fs()
1510 if (!tsk->fs) in copy_fs()
2971 struct fs_struct *fs = current->fs; in unshare_fs() local
2973 if (!(unshare_flags & CLONE_FS) || !fs) in unshare_fs()
2977 if (fs->users == 1) in unshare_fs()
2980 *new_fsp = copy_fs_struct(fs); in unshare_fs()
3016 struct fs_struct *fs, *new_fs = NULL; in ksys_unshare() local
3088 fs = current->fs; in ksys_unshare()
3089 spin_lock(&fs->lock); in ksys_unshare()
3090 current->fs = new_fs; in ksys_unshare()
3091 if (--fs->users) in ksys_unshare()
3094 new_fs = fs; in ksys_unshare()
3095 spin_unlock(&fs->lock); in ksys_unshare()