From: Theodore Ts'o Date: Wed, 19 Sep 2012 04:55:56 +0000 (-0400) Subject: ext4: fix online resizing when the # of block groups is constant X-Git-Tag: v3.7-rc1~91^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59e31c156a24d483bbd2ea07d4dc96043a55b6bc;p=pandora-kernel.git ext4: fix online resizing when the # of block groups is constant Commit 1c6bd7173d66b3 introduced a regression where an online resize operation which did not change the number of block groups would fail, i.e: mke2fs -t /dev/vdc 60000 mount /dev/vdc resize2fs /dev/vdc 60001 This was due to a bug in the logic regarding when to try converting the filesystem to use meta_bg. Also fix up a number of other minor issues with the online resizing code: (a) Fix a sparse warning; (b) only check to make sure the device is large enough once, instead of multiple times through the resize loop. Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed