summaryrefslogtreecommitdiffstats
path: root/Documentation/hwmon/abituguru
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2018-12-03 10:20:34 -0500
committerDavid Sterba <dsterba@suse.com>2018-12-17 14:51:47 +0100
commit4c8edbc75cb9ff846066cd9781ede4f27caf3cf4 (patch)
tree456ab9cccbb1dd3c76ebf4f3b00d62c27d1bf08e /Documentation/hwmon/abituguru
parentba2c4d4e3bda7d6de2bc616ae6715e0a0725b294 (diff)
downloadblackbird-op-linux-4c8edbc75cb9ff846066cd9781ede4f27caf3cf4.tar.gz
blackbird-op-linux-4c8edbc75cb9ff846066cd9781ede4f27caf3cf4.zip
btrfs: update may_commit_transaction to use the delayed refs rsv
Any space used in the delayed_refs_rsv will be freed up by a transaction commit, so instead of just counting the pinned space we also need to account for any space in the delayed_refs_rsv when deciding if it will make a different to commit the transaction to satisfy our space reservation. If we have enough bytes to satisfy our reservation ticket then we are good to go, otherwise subtract out what space we would gain back by committing the transaction and compare that against the pinned space to make our decision. Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'Documentation/hwmon/abituguru')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud