Josef Bacik 6346c93988 Btrfs: fix data allocation hint start
Sometimes our start allocation hint when we cow a file can be either
EXTENT_HOLE or some other such place holder, which is not optimal.  So if we
find that our em->block_start is one of these special values, check to see
where the first block of the inode is stored, and use that as a hint.  If that
block is also a special value, just fallback on a hint of 0 and let the
allocator figure out a good place to put the data.

Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2009-11-11 14:20:16 -05:00
..
2009-10-13 13:51:39 -04:00
2009-10-14 10:32:49 -04:00
2008-09-25 11:04:06 -04:00
2009-11-11 14:20:16 -05:00
2009-02-04 09:28:28 -05:00
2009-04-02 16:46:06 -04:00
2009-10-14 10:32:49 -04:00
2009-01-05 21:25:51 -05:00
2009-09-29 13:51:04 -04:00
2009-10-13 13:51:39 -04:00
2009-02-04 09:29:13 -05:00