diff options
author | Josef Bacik <jbacik@fb.com> | 2015-09-25 16:13:11 -0400 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2015-10-21 18:51:46 -0700 |
commit | 36af4e0737f6aa494e43497a5a34588a1d5cb12f (patch) | |
tree | 9631ef934dbd519c706f89f4d3c987493295e381 /fs/btrfs/ctree.h | |
parent | 3204d33cda40d9bc97f257c441225d3713916661 (diff) | |
download | lwn-36af4e0737f6aa494e43497a5a34588a1d5cb12f.tar.gz lwn-36af4e0737f6aa494e43497a5a34588a1d5cb12f.zip |
Btrfs: don't loop in allocator for space cache
The space cache needs to have contiguous allocations, and the allocator tries to
make allocations by reducing the amount of bytes requested and re-searching.
But this just makes us waste time when we are very fragmented, so if we can't
find our space just exit, don't bother trying to search again. Thanks,
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
0 files changed, 0 insertions, 0 deletions