X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=fs%2Ffile_table.c;h=aa1e180502829948707098ac19a8b1d6613e41f3;hb=684999149002dd046269666a390458e0acb38280;hp=bbeeac6efa1a85eca90bd59e85c620022502f3d7;hpb=041b62374c7fedc11a8a1eeda2868612d3d1436c;p=safe%2Fjmp%2Flinux-2.6 diff --git a/fs/file_table.c b/fs/file_table.c index bbeeac6..aa1e180 100644 --- a/fs/file_table.c +++ b/fs/file_table.c @@ -127,6 +127,7 @@ struct file *get_empty_filp(void) atomic_long_set(&f->f_count, 1); rwlock_init(&f->f_owner.lock); f->f_cred = get_cred(cred); + spin_lock_init(&f->f_lock); eventpoll_init_file(f); /* f->f_version: 0 */ return f;