summaryrefslogtreecommitdiffstats
path: root/drivers/uio/Makefile
diff options
context:
space:
mode:
authorJosef Bacik <josef@redhat.com>2011-11-03 22:54:25 -0400
committerChris Mason <chris.mason@oracle.com>2011-11-06 03:04:19 -0500
commit663350ac38c67ca388acea6e876dc6d668c232b0 (patch)
treed111c306c5dfd622c04a0568efde089bdc4577b3 /drivers/uio/Makefile
parent6d668dda0caec537fbf28c4d91e6d18181af3cff (diff)
downloadop-kernel-dev-663350ac38c67ca388acea6e876dc6d668c232b0.zip
op-kernel-dev-663350ac38c67ca388acea6e876dc6d668c232b0.tar.gz
Btrfs: be smarter about committing the transaction in reserve_metadata_bytes
Because of the overcommit stuff I had to make it so that we committed the transaction all the time in reserve_metadata_bytes in case we had overcommitted because of delayed items. This was because previously we had no way of knowing how much space was reserved for delayed items. Now that we have the delayed_block_rsv we can check it to see if committing the transaction would get us anywhere. This patch breaks out the committing logic into a helper function that will check to see if committing the transaction would free enough space for us to get anything done. With this patch xfstests 83 goes from taking 445 seconds to taking 28 seconds on my box. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'drivers/uio/Makefile')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud