]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
Btrfs: don't commit the transaction if we dont have enough pinned bytes
authorJosef Bacik <josef@redhat.com>
Wed, 25 May 2011 17:10:16 +0000 (13:10 -0400)
committerJosef Bacik <josef@redhat.com>
Wed, 8 Jun 2011 19:08:31 +0000 (15:08 -0400)
commitf2bb8f5cfb3bce595b2de251ed7638047fc4e530
tree705123220f4e1ae64f1f67b852f9e93b18db8e9a
parent3de85bb95cc50d0977cbb7a0c605e894be4c790d
Btrfs: don't commit the transaction if we dont have enough pinned bytes

I noticed when running an enospc test that we would get stuck committing the
transaction in check_data_space even though we truly didn't have enough space.
So check to see if bytes_pinned is bigger than num_bytes, if it's not don't
commit the transaction.  Thanks,

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