]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: don't loop in allocator for space cache
authorJosef Bacik <jbacik@fb.com>
Fri, 25 Sep 2015 20:13:11 +0000 (16:13 -0400)
committerChris Mason <clm@fb.com>
Thu, 22 Oct 2015 01:51:46 +0000 (18:51 -0700)
commitbc817e78000ee6069c24a64fab9fb5e86385ffa0
tree9631ef934dbd519c706f89f4d3c987493295e381
parentc2fe4219d4b531d53e4476590883b809d1d6db05
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>
fs/btrfs/extent-tree.c