summaryrefslogtreecommitdiffstats
path: root/fs/fs_struct.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fs_struct.c')
-rw-r--r--fs/fs_struct.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/fs_struct.c b/fs/fs_struct.c
index 78b519c13536..27114b413622 100644
--- a/fs/fs_struct.c
+++ b/fs/fs_struct.c
@@ -107,10 +107,8 @@ void exit_fs(struct task_struct *tsk)
107 int kill; 107 int kill;
108 task_lock(tsk); 108 task_lock(tsk);
109 spin_lock(&fs->lock); 109 spin_lock(&fs->lock);
110 write_seqcount_begin(&fs->seq);
111 tsk->fs = NULL; 110 tsk->fs = NULL;
112 kill = !--fs->users; 111 kill = !--fs->users;
113 write_seqcount_end(&fs->seq);
114 spin_unlock(&fs->lock); 112 spin_unlock(&fs->lock);
115 task_unlock(tsk); 113 task_unlock(tsk);
116 if (kill) 114 if (kill)