Skip to content
  • Theodore Ts'o's avatar
    ext4: grow the s_flex_groups array as needed when resizing · 117fff10
    Theodore Ts'o authored
    
    
    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: default avatar"Theodore Ts'o" <tytso@mit.edu>
    117fff10