mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 06:01:23 +00:00
no need to play with fs->seq in exit_fs()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
68ac1234fb
commit
3ee05ed067
1 changed files with 0 additions and 2 deletions
|
@ -107,10 +107,8 @@ void exit_fs(struct task_struct *tsk)
|
||||||
int kill;
|
int kill;
|
||||||
task_lock(tsk);
|
task_lock(tsk);
|
||||||
spin_lock(&fs->lock);
|
spin_lock(&fs->lock);
|
||||||
write_seqcount_begin(&fs->seq);
|
|
||||||
tsk->fs = NULL;
|
tsk->fs = NULL;
|
||||||
kill = !--fs->users;
|
kill = !--fs->users;
|
||||||
write_seqcount_end(&fs->seq);
|
|
||||||
spin_unlock(&fs->lock);
|
spin_unlock(&fs->lock);
|
||||||
task_unlock(tsk);
|
task_unlock(tsk);
|
||||||
if (kill)
|
if (kill)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue