diff options
Diffstat (limited to 'fs/hpfs/super.c')
-rw-r--r-- | fs/hpfs/super.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/fs/hpfs/super.c b/fs/hpfs/super.c index 1b95f39fbc37..29cc34abb2ea 100644 --- a/fs/hpfs/super.c +++ b/fs/hpfs/super.c | |||
@@ -12,6 +12,7 @@ | |||
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | #include <linux/statfs.h> | 13 | #include <linux/statfs.h> |
14 | #include <linux/magic.h> | 14 | #include <linux/magic.h> |
15 | #include <linux/sched.h> | ||
15 | 16 | ||
16 | /* Mark the filesystem dirty, so that chkdsk checks it when os/2 booted */ | 17 | /* Mark the filesystem dirty, so that chkdsk checks it when os/2 booted */ |
17 | 18 | ||
@@ -176,11 +177,9 @@ static void init_once(void * foo, struct kmem_cache * cachep, unsigned long flag | |||
176 | { | 177 | { |
177 | struct hpfs_inode_info *ei = (struct hpfs_inode_info *) foo; | 178 | struct hpfs_inode_info *ei = (struct hpfs_inode_info *) foo; |
178 | 179 | ||
179 | if (flags & SLAB_CTOR_CONSTRUCTOR) { | 180 | mutex_init(&ei->i_mutex); |
180 | mutex_init(&ei->i_mutex); | 181 | mutex_init(&ei->i_parent_mutex); |
181 | mutex_init(&ei->i_parent_mutex); | 182 | inode_init_once(&ei->vfs_inode); |
182 | inode_init_once(&ei->vfs_inode); | ||
183 | } | ||
184 | } | 183 | } |
185 | 184 | ||
186 | static int init_inodecache(void) | 185 | static int init_inodecache(void) |