Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ee05ed0 authored by Al Viro's avatar Al Viro
Browse files

no need to play with fs->seq in exit_fs()



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 68ac1234
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -107,10 +107,8 @@ void exit_fs(struct task_struct *tsk)
		int kill;
		task_lock(tsk);
		spin_lock(&fs->lock);
		write_seqcount_begin(&fs->seq);
		tsk->fs = NULL;
		kill = !--fs->users;
		write_seqcount_end(&fs->seq);
		spin_unlock(&fs->lock);
		task_unlock(tsk);
		if (kill)