X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=fs%2Ffile_table.c;h=5b24008ea4f678b668ff2a52fa41f1812b579645;hb=9c225f2655e36a470c4f58dbbc99244c5fc7f2d4;hp=5fff9030be34df26aff0c0ed56081aee1306bf02;hpb=1b56e98990bcdbb20b9fab163654b9315bf158e8;p=~andy%2Flinux diff --git a/fs/file_table.c b/fs/file_table.c index 5fff9030be3..5b24008ea4f 100644 --- a/fs/file_table.c +++ b/fs/file_table.c @@ -135,6 +135,7 @@ struct file *get_empty_filp(void) atomic_long_set(&f->f_count, 1); rwlock_init(&f->f_owner.lock); spin_lock_init(&f->f_lock); + mutex_init(&f->f_pos_lock); eventpoll_init_file(f); /* f->f_version: 0 */ return f;