Lines Matching refs:fs
1439 struct fs_struct *fs = current->fs; in copy_fs() local
1442 spin_lock(&fs->lock); in copy_fs()
1443 if (fs->in_exec) { in copy_fs()
1444 spin_unlock(&fs->lock); in copy_fs()
1447 fs->users++; in copy_fs()
1448 spin_unlock(&fs->lock); in copy_fs()
1451 tsk->fs = copy_fs_struct(fs); in copy_fs()
1452 if (!tsk->fs) in copy_fs()
2781 struct fs_struct *fs = current->fs; in unshare_fs() local
2783 if (!(unshare_flags & CLONE_FS) || !fs) in unshare_fs()
2787 if (fs->users == 1) in unshare_fs()
2790 *new_fsp = copy_fs_struct(fs); in unshare_fs()
2825 struct fs_struct *fs, *new_fs = NULL; in ksys_unshare() local
2897 fs = current->fs; in ksys_unshare()
2898 spin_lock(&fs->lock); in ksys_unshare()
2899 current->fs = new_fs; in ksys_unshare()
2900 if (--fs->users) in ksys_unshare()
2903 new_fs = fs; in ksys_unshare()
2904 spin_unlock(&fs->lock); in ksys_unshare()