diff options
Diffstat (limited to 'fs/jffs2')
-rw-r--r-- | fs/jffs2/super.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/jffs2/super.c b/fs/jffs2/super.c index e3c69e659efb..e220d3bd610d 100644 --- a/fs/jffs2/super.c +++ b/fs/jffs2/super.c | |||
@@ -47,11 +47,8 @@ static void jffs2_i_init_once(void * foo, struct kmem_cache * cachep, unsigned l | |||
47 | { | 47 | { |
48 | struct jffs2_inode_info *ei = (struct jffs2_inode_info *) foo; | 48 | struct jffs2_inode_info *ei = (struct jffs2_inode_info *) foo; |
49 | 49 | ||
50 | if ((flags & (SLAB_CTOR_VERIFY|SLAB_CTOR_CONSTRUCTOR)) == | 50 | init_MUTEX(&ei->sem); |
51 | SLAB_CTOR_CONSTRUCTOR) { | 51 | inode_init_once(&ei->vfs_inode); |
52 | init_MUTEX(&ei->sem); | ||
53 | inode_init_once(&ei->vfs_inode); | ||
54 | } | ||
55 | } | 52 | } |
56 | 53 | ||
57 | static int jffs2_sync_fs(struct super_block *sb, int wait) | 54 | static int jffs2_sync_fs(struct super_block *sb, int wait) |