diff options
author | Theodore Ts'o <tytso@mit.edu> | 2014-02-16 03:42:25 (GMT) |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-03-05 16:13:39 (GMT) |
commit | 50e31fc3f09c418d312d4129d8f01f607087bd5a (patch) | |
tree | af6d1964bb9bae0e824d4b4c2c431d1f38439941 /fs/namei.c | |
parent | c6f75d48dffe9216edacf94205ab55aebe67e46f (diff) | |
download | linux-fsl-qoriq-50e31fc3f09c418d312d4129d8f01f607087bd5a.tar.xz |
ext4: fix online resize with a non-standard blocks per group setting
commit 3d2660d0c9c2f296837078c189b68a47f6b2e3b5 upstream.
The set_flexbg_block_bitmap() function assumed that the number of
blocks in a blockgroup was sb->blocksize * 8, which is normally true,
but not always! Use EXT4_BLOCKS_PER_GROUP(sb) instead, to fix block
bitmap corruption after:
mke2fs -t ext4 -g 3072 -i 4096 /dev/vdd 1G
mount -t ext4 /dev/vdd /vdd
resize2fs /dev/vdd 8G
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reported-by: Jon Bernard <jbernard@tuxion.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'fs/namei.c')
0 files changed, 0 insertions, 0 deletions