fs: allocate inode by using alloc_inode_sb()
[sfrench/cifs-2.6.git] / fs / exfat / super.c
index 8c9fb7dcec16a0938253f81e17c7bdb3d0363f67..9f892903419aeaa7521f75ecc91999bc3f52912b 100644 (file)
@@ -183,7 +183,7 @@ static struct inode *exfat_alloc_inode(struct super_block *sb)
 {
        struct exfat_inode_info *ei;
 
-       ei = kmem_cache_alloc(exfat_inode_cachep, GFP_NOFS);
+       ei = alloc_inode_sb(sb, exfat_inode_cachep, GFP_NOFS);
        if (!ei)
                return NULL;