From: Theodore Ts'o Date: Sun, 16 Feb 2014 03:42:25 +0000 (-0500) Subject: ext4: fix online resize with a non-standard blocks per group setting X-Git-Tag: v3.14-rc4~33^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d2660d0c9c2f296837078c189b68a47f6b2e3b5;p=pandora-kernel.git ext4: fix online resize with a non-standard blocks per group setting 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" Reported-by: Jon Bernard Cc: stable@vger.kernel.org --- Reading git-diff-tree failed