]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: take overflow into account in reserving space
authorJosef Bacik <josef@redhat.com>
Wed, 5 Oct 2011 20:35:28 +0000 (16:35 -0400)
committerJosef Bacik <josef@redhat.com>
Wed, 19 Oct 2011 19:12:53 +0000 (15:12 -0400)
commit8e4338079092e24a0f6a2cd8149f02e541a2b397
tree965b34fb6e1133d3a198954aa1d97ede017f993a
parentbe76ad0cfdbf5291d960a388defe74416abf75ea
Btrfs: take overflow into account in reserving space

My overcommit stuff can be a little racy when we're filling up the disk with
fs_mark and we overcommit into things that quickly get used up for data.  So use
num_bytes to see if we have enough available space so we're less likely to
overcommit ourselves out of the ability to make reservations.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/extent-tree.c