diff options
author | Liu Bo <liubo2009@cn.fujitsu.com> | 2012-07-23 13:50:03 +0200 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2012-07-23 22:28:10 +0200 |
commit | df57dbe6bf73cc44305d81c24982a11da49b1f79 (patch) | |
tree | 4695986bc2458a8a66b5ac217a5ed03941014937 /fs/btrfs/extent_io.c | |
parent | Btrfs: lock the transition from dirty to writeback for an eb (diff) | |
download | linux-df57dbe6bf73cc44305d81c24982a11da49b1f79.tar.xz linux-df57dbe6bf73cc44305d81c24982a11da49b1f79.zip |
Btrfs: make btrfs's allocation smoothly with preallocation
For backref walking, we've introduce delayed ref's sequence. However,
it changes our preallocation behavior.
The story is that when we preallocate an extent and then mark it written
piece by piece, the ideal case should be that we don't need to COW the
extent, which is why we use 'preallocate'.
But we may not make use of preallocation, since when we check for cross refs on
the extent, we may have two ref entries which have the same content except
the sequence value, and we recognize them as cross refs and do COW to allocate
another extent.
So we end up with several pieces of space instead of an whole extent.
Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions