fs: allocate inode by using alloc_inode_sb()
[sfrench/cifs-2.6.git] / fs / orangefs / super.c
index d90d8addbfc29ee45b8b571e6324f792162886de..5254256a224d7a0a78f9673a42dc7df386370a4a 100644 (file)
@@ -107,7 +107,7 @@ static struct inode *orangefs_alloc_inode(struct super_block *sb)
 {
        struct orangefs_inode_s *orangefs_inode;
 
-       orangefs_inode = kmem_cache_alloc(orangefs_inode_cache, GFP_KERNEL);
+       orangefs_inode = alloc_inode_sb(sb, orangefs_inode_cache, GFP_KERNEL);
        if (!orangefs_inode)
                return NULL;