]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: grow the s_group_info array as needed
authorTheodore Ts'o <tytso@mit.edu>
Wed, 5 Sep 2012 05:31:50 +0000 (01:31 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 5 Sep 2012 05:31:50 +0000 (01:31 -0400)
commit4fc1fd7f3b67825b1ef0ad85d2f6bd362b930725
treeec5bf1df32709f0ebf359ce05b16f8ef608d2e9e
parent447ade03fa808b43cd5be9e89f80cee414826383
ext4: grow the s_group_info array as needed

Previously we allocated the s_group_info array with enough space for
any future possible growth of the file system via online resize.  This
is unfortunate because it wastes memory, and it doesn't work for the
meta_bg scheme, since there is no limit based on the number of
reserved gdt blocks.  So add the code to grow the s_group_info array
as needed.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/mballoc.c
fs/ext4/resize.c