diff options
| -rw-r--r-- | fs/jffs2/super.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/fs/jffs2/super.c b/fs/jffs2/super.c index f3353df178e7..7da69eae49e4 100644 --- a/fs/jffs2/super.c +++ b/fs/jffs2/super.c | |||
| @@ -31,11 +31,12 @@ static struct kmem_cache *jffs2_inode_cachep; | |||
| 31 | 31 | ||
| 32 | static struct inode *jffs2_alloc_inode(struct super_block *sb) | 32 | static struct inode *jffs2_alloc_inode(struct super_block *sb) |
| 33 | { | 33 | { |
| 34 | struct jffs2_inode_info *ei; | 34 | struct jffs2_inode_info *f; |
| 35 | ei = (struct jffs2_inode_info *)kmem_cache_alloc(jffs2_inode_cachep, GFP_KERNEL); | 35 | |
| 36 | if (!ei) | 36 | f = kmem_cache_alloc(jffs2_inode_cachep, GFP_KERNEL); |
| 37 | if (!f) | ||
| 37 | return NULL; | 38 | return NULL; |
| 38 | return &ei->vfs_inode; | 39 | return &f->vfs_inode; |
| 39 | } | 40 | } |
| 40 | 41 | ||
| 41 | static void jffs2_destroy_inode(struct inode *inode) | 42 | static void jffs2_destroy_inode(struct inode *inode) |
| @@ -45,10 +46,10 @@ static void jffs2_destroy_inode(struct inode *inode) | |||
| 45 | 46 | ||
| 46 | static void jffs2_i_init_once(struct kmem_cache *cachep, void *foo) | 47 | static void jffs2_i_init_once(struct kmem_cache *cachep, void *foo) |
| 47 | { | 48 | { |
| 48 | struct jffs2_inode_info *ei = (struct jffs2_inode_info *) foo; | 49 | struct jffs2_inode_info *f = foo; |
| 49 | 50 | ||
| 50 | mutex_init(&ei->sem); | 51 | mutex_init(&f->sem); |
| 51 | inode_init_once(&ei->vfs_inode); | 52 | inode_init_once(&f->vfs_inode); |
| 52 | } | 53 | } |
| 53 | 54 | ||
| 54 | static int jffs2_sync_fs(struct super_block *sb, int wait) | 55 | static int jffs2_sync_fs(struct super_block *sb, int wait) |
