summaryrefslogtreecommitdiffstats
path: root/fs/ext4/mballoc.c
diff options
context:
space:
mode:
authorTheodore Ts'o2012-09-05 07:29:50 +0200
committerTheodore Ts'o2012-09-05 07:29:50 +0200
commit117fff10d7f140e12dd43df20d3f9fda80577460 (patch)
tree0236d1dfb77e794b1628b723f21b3c83383e0475 /fs/ext4/mballoc.c
parentext4: avoid duplicate writes of the backup bg descriptor blocks (diff)
downloadkernel-qcow2-linux-117fff10d7f140e12dd43df20d3f9fda80577460.tar.gz
kernel-qcow2-linux-117fff10d7f140e12dd43df20d3f9fda80577460.tar.xz
kernel-qcow2-linux-117fff10d7f140e12dd43df20d3f9fda80577460.zip
ext4: grow the s_flex_groups array as needed when resizing
Previously, we allocated the s_flex_groups array to the maximum size that the file system could be resized. There was two problems with this approach. First, it wasted memory in the common case where the file system was not resized. Secondly, once we start allowing online resizing using the meta_bg scheme, there is no maximum size that the file system can be resized. So instead, we need to grow the s_flex_groups at inline resize time. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/mballoc.c')
0 files changed, 0 insertions, 0 deletions