]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
ext4: use the correct error exit path in ext4_init_inode_table()
authorYongqiang Yang <xiaoqiangnk@gmail.com>
Mon, 1 Aug 2011 10:32:19 +0000 (06:32 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 1 Aug 2011 10:32:19 +0000 (06:32 -0400)
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>
fs/ext4/ialloc.c

index 21bb2f61e50223c2da0946c4b48db0e4c947e1a7..9c63f273b550497759103ad0f6b4aaafd8e2049d 100644 (file)
@@ -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;