summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorKirill Tkhai <ktkhai@virtuozzo.com>2019-04-25 13:06:18 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-22 07:37:42 +0200
commitf795247578aaf398d2af4de902264d194c12222f (patch)
tree6af8f165d0cb72d1310f162b0babe45299940ab9 /fs
parent2a18c9c76718f77a08177f1fc20007fab2fdafdd (diff)
downloadlinux-rpi3-f795247578aaf398d2af4de902264d194c12222f.tar.gz
linux-rpi3-f795247578aaf398d2af4de902264d194c12222f.tar.bz2
linux-rpi3-f795247578aaf398d2af4de902264d194c12222f.zip
ext4: actually request zeroing of inode table after grow
commit 310a997fd74de778b9a4848a64be9cda9f18764a upstream. It is never possible, that number of block groups decreases, since only online grow is supported. But after a growing occured, we have to zero inode tables for just created new block groups. Fixes: 19c5246d2516 ("ext4: add new online resize interface") Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Reviewed-by: Jan Kara <jack@suse.cz> Cc: stable@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/ext4/ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/ioctl.c b/fs/ext4/ioctl.c
index 5f24fdc140ad..53d57cdf3c4d 100644
--- a/fs/ext4/ioctl.c
+++ b/fs/ext4/ioctl.c
@@ -977,7 +977,7 @@ mext_out:
if (err == 0)
err = err2;
mnt_drop_write_file(filp);
- if (!err && (o_group > EXT4_SB(sb)->s_groups_count) &&
+ if (!err && (o_group < EXT4_SB(sb)->s_groups_count) &&
ext4_has_group_desc_csum(sb) &&
test_opt(sb, INIT_INODE_TABLE))
err = ext4_register_li_request(sb, o_group);