Skip to content
Commit f2bb8f5c authored by Josef Bacik's avatar Josef Bacik
Browse files

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: default avatarJosef Bacik <josef@redhat.com>
parent 3de85bb9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment