Skip to content
  • Benjamin Marzinski's avatar
    GFS2: reread rindex when necessary to grow rindex · 0489b3f5
    Benjamin Marzinski authored
    
    
    When GFS2 grew the filesystem, it was never rereading the rindex file during
    the grow. This is necessary for large grows when the filesystem is almost full,
    and GFS2 needs to use some of the space allocated earlier in the grow to
    complete it.  Now, if GFS2 fails to reserve the necessary space and the rindex
    file is not uptodate, it rereads it.  Also, the only difference between
    gfs2_ri_update() and gfs2_ri_update_special() was that gfs2_ri_update_special()
    didn't clear out the existing resource groups, since you knew that it was only
    called when there were no resource groups.  Attempting to clear out the
    resource groups when there are none takes almost no time, and rarely happens,
    so I simply removed gfs2_ri_update_special().
    
    Signed-off-by: default avatarBenjamin Marzinski <bmarzins@redhat.com>
    Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
    0489b3f5