diff options
Diffstat (limited to 'fs/file_table.c')
-rw-r--r-- | fs/file_table.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/file_table.c b/fs/file_table.c index 5fff9030be34..01071c4d752e 100644 --- a/fs/file_table.c +++ b/fs/file_table.c | |||
@@ -135,6 +135,7 @@ struct file *get_empty_filp(void) | |||
135 | atomic_long_set(&f->f_count, 1); | 135 | atomic_long_set(&f->f_count, 1); |
136 | rwlock_init(&f->f_owner.lock); | 136 | rwlock_init(&f->f_owner.lock); |
137 | spin_lock_init(&f->f_lock); | 137 | spin_lock_init(&f->f_lock); |
138 | mutex_init(&f->f_pos_lock); | ||
138 | eventpoll_init_file(f); | 139 | eventpoll_init_file(f); |
139 | /* f->f_version: 0 */ | 140 | /* f->f_version: 0 */ |
140 | return f; | 141 | return f; |
@@ -234,7 +235,7 @@ static void __fput(struct file *file) | |||
234 | * in the file cleanup chain. | 235 | * in the file cleanup chain. |
235 | */ | 236 | */ |
236 | eventpoll_release(file); | 237 | eventpoll_release(file); |
237 | locks_remove_flock(file); | 238 | locks_remove_file(file); |
238 | 239 | ||
239 | if (unlikely(file->f_flags & FASYNC)) { | 240 | if (unlikely(file->f_flags & FASYNC)) { |
240 | if (file->f_op->fasync) | 241 | if (file->f_op->fasync) |