• B
    gfs2: keep offset when splitting dir leaf blocks · 34017472
    Benjamin Marzinski 提交于
    Currently, when gfs2 splits a directory leaf block, the dirents that
    need to be copied to the new leaf block are packed into the start of it.
    This is good for space efficiency. However, if gfs2 were to copy those
    dirents into the exact same offset in the new leaf block as they had in
    the old block, it would be able to generate a readdir cookie based on
    the dirent location, that would be guaranteed to be unique up well past
    where the current code is statistically almost guaranteed to have
    collisions. So, gfs2 now keeps the dirent's offset in the block the
    same when it copies it to the new leaf block.
    Signed-off-by: NBenjamin Marzinski <bmarzins@redhat.com>
    Signed-off-by: NBob Peterson <rpeterso@redhat.com>
    34017472
dir.c 50.6 KB