Skip to content

Commit

Permalink
ext4: use the correct error exit path in ext4_init_inode_table()
Browse files Browse the repository at this point in the history
This patch lets ext4_init_inode_table() handle errors right.
ext4_init_inode_table() should down_write() alloc_sem which
has been up_write()ed and stop the started journal handle.

Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
  • Loading branch information
Yongqiang Yang authored and Theodore Ts'o committed Aug 1, 2011
1 parent c49bafa commit 33853a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ext4/ialloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,7 @@ extern int ext4_init_inode_table(struct super_block *sb, ext4_group_t group,
group, used_blks,
ext4_itable_unused_count(sb, gdp));
ret = 1;
goto out;
goto err_out;
}

blk = ext4_inode_table(sb, gdp) + used_blks;
Expand Down

0 comments on commit 33853a0

Please sign in to comment.