Btrfs: only retry transaction reservation once
authorJosef Bacik <josef@redhat.com>
Tue, 5 Apr 2011 15:57:27 +0000 (11:57 -0400)
committerJosef Bacik <josef@redhat.com>
Fri, 8 Apr 2011 17:00:32 +0000 (13:00 -0400)
commit06d5a5899d6d3ac401d2359b5eac6d2a3a0fe331
treeff26c40dec6e649dca7316ce10412cc6c0ace985
parentbe1a12a0dfed06cf1e62e35bf91620dc610a451a
Btrfs: only retry transaction reservation once

I saw a lockup where we kept getting into this start transaction->commit
transaction loop because of enospce.  The fact is if we fail to make our
reservation, we've tried _everything_ several times, so we only need to try and
commit the transaction once, and if that doesn't work then we really are out of
space and need to just exit.  Thanks,

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