]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: fix online resizing when the # of block groups is constant
authorTheodore Ts'o <tytso@mit.edu>
Wed, 19 Sep 2012 04:55:56 +0000 (00:55 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 19 Sep 2012 04:55:56 +0000 (00:55 -0400)
commit007665e28aecaa6a68db99e78e978f8a01ab794e
treeadb76b9f52a862c4a844be737c7f16c4a8dbaa81
parent9a7b85273b57550d15bc4cf4767578c7b1ca2c88
ext4: fix online resizing when the # of block groups is constant

Commit d257993881b8b1 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" <tytso@mit.edu>
fs/ext4/resize.c