]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: Don't substract too much from the allocation target (avoid wrapping)
authorChris Mason <chris.mason@oracle.com>
Mon, 10 Nov 2008 12:26:33 +0000 (07:26 -0500)
committerChris Mason <chris.mason@oracle.com>
Mon, 10 Nov 2008 12:26:33 +0000 (07:26 -0500)
commitc455590b006d4c27eb9ac6d7979202e4884cd53a
tree7338c64a5431e65a5fa27b0df0c7f6e2baf0b884
parentdc485c6c17ec009a0b32ed30b5b35e79afefd1a6
Btrfs: Don't substract too much from the allocation target (avoid wrapping)

When metadata allocation clustering has to fall back to unclustered
allocs because large free areas could not be found, it was sometimes
substracting too much from the total bytes to allocate.  This would
make it wrap below zero.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent-tree.c