fs: allocate inode by using alloc_inode_sb()
[linux-2.6-microblaze.git] / fs / ocfs2 / super.c
index 8bde30f..477cdf9 100644 (file)
@@ -548,7 +548,7 @@ static struct inode *ocfs2_alloc_inode(struct super_block *sb)
 {
        struct ocfs2_inode_info *oi;
 
-       oi = kmem_cache_alloc(ocfs2_inode_cachep, GFP_NOFS);
+       oi = alloc_inode_sb(sb, ocfs2_inode_cachep, GFP_NOFS);
        if (!oi)
                return NULL;