Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <xiaoqiangnk@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>

authored by

Yongqiang Yang and committed by
Theodore Ts'o
33853a0d c49bafa3

+1 -1
+1 -1
fs/ext4/ialloc.c
··· 1287 1287 group, used_blks, 1288 1288 ext4_itable_unused_count(sb, gdp)); 1289 1289 ret = 1; 1290 - goto out; 1290 + goto err_out; 1291 1291 } 1292 1292 1293 1293 blk = ext4_inode_table(sb, gdp) + used_blks;