summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/incore.h
diff options
context:
space:
mode:
authorBenjamin Marzinski2015-12-01 15:30:34 +0100
committerBob Peterson2015-12-14 19:19:34 +0100
commit340174722929d80a107120400bab527cfc7e47f1 (patch)
tree0385ac25db0991a4da1975bac80be03cf8ca64c3 /fs/gfs2/incore.h
parentGFS2: Reintroduce a timeout in function gfs2_gl_hash_clear (diff)
downloadkernel-qcow2-linux-340174722929d80a107120400bab527cfc7e47f1.tar.gz
kernel-qcow2-linux-340174722929d80a107120400bab527cfc7e47f1.tar.xz
kernel-qcow2-linux-340174722929d80a107120400bab527cfc7e47f1.zip
gfs2: keep offset when splitting dir leaf blocks
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: Benjamin Marzinski <bmarzins@redhat.com> Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'fs/gfs2/incore.h')
0 files changed, 0 insertions, 0 deletions