diff options
| author | Josef Bacik <[email protected]> | 2009-11-11 02:23:47 +0000 |
|---|---|---|
| committer | Chris Mason <[email protected]> | 2009-11-11 19:20:16 +0000 |
| commit | 6346c93988caa3048bf4d81f9ba3608a7a195aa2 (patch) | |
| tree | 78e5fbc5fa6ed8c692db24dfff475e2b95413570 /fs/proc/array.c | |
| parent | Btrfs: always pin metadata in discard mode (diff) | |
| download | kernel-6346c93988caa3048bf4d81f9ba3608a7a195aa2.tar.gz kernel-6346c93988caa3048bf4d81f9ba3608a7a195aa2.zip | |
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 <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
