aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorJosef Bacik <[email protected]>2019-08-22 15:11:00 -0400
committerDavid Sterba <[email protected]>2019-09-09 14:59:18 +0200
commit00c0135eb8b8172de48e1accbb09ebfa3aa8bf25 (patch)
treeefed93f9a10b2b5e0ca67d2622b025e7a501947d /lib/test_overflow.c
parent2341ccd1bf05b3d844c10ad224cd38b06fd53219 (diff)
btrfs: fix may_commit_transaction to deal with no partial filling
Now that we aren't partially filling tickets we may have some slack space left in the space_info. We need to account for this in may_commit_transaction, otherwise we may choose to not commit the transaction despite it actually having enough space to satisfy our ticket. Calculate the free space we have in the space_info, if any, and subtract this from the ticket we have and use that amount to determine if we will need to commit to reclaim enough space. Reviewed-by: Nikolay Borisov <[email protected]> Signed-off-by: Josef Bacik <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions