From: Yongqiang Yang Date: Mon, 1 Aug 2011 10:32:19 +0000 (-0400) Subject: ext4: use the correct error exit path in ext4_init_inode_table() X-Git-Tag: v3.1-rc1~90^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=33853a0dde359ded0534204eb6857ad5166d515b;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git ext4: use the correct error exit path in ext4_init_inode_table() 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 Signed-off-by: "Theodore Ts'o" --- diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c index 21bb2f6..9c63f27 100644 --- a/fs/ext4/ialloc.c +++ b/fs/ext4/ialloc.c @@ -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;