X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=fs%2Ffile_table.c;h=54018fe488403082ac5274e24a3fee9480fa0a16;hb=2d9aaa76288b9a4d6aca5067154ceb09122aacd8;hp=da806aceae3f7c350c449821defb7647234c2840;hpb=21cdbc1378e8aa96e1ed4a606dce1a8e7daf7fdf;p=linux-2.6-omap-h63xx.git diff --git a/fs/file_table.c b/fs/file_table.c index da806aceae3..54018fe4884 100644 --- a/fs/file_table.c +++ b/fs/file_table.c @@ -128,6 +128,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; @@ -168,7 +169,6 @@ struct file *alloc_file(struct vfsmount *mnt, struct dentry *dentry, fmode_t mode, const struct file_operations *fop) { struct file *file; - struct path; file = get_empty_filp(); if (!file)