commit | 2e294c60497f29ab8791f4b99f348b22d70dd3c3 | [log] [tgz] |
---|---|---|
author | Josef Bacik <josef@toxicpanda.com> | Fri Oct 09 09:28:26 2020 -0400 |
committer | David Sterba <dsterba@suse.com> | Mon Feb 08 22:58:59 2021 +0100 |
tree | cb40e6dc6eed38e728df2c5e514d3ad227d9d617 | |
parent | 9f42d37748264d65ca611b60c22b9c003030b0b3 [diff] |
btrfs: simplify the logic in need_preemptive_flushing A lot of this was added all in one go with no explanation, and is a bit unwieldy and confusing. Simplify the logic to start preemptive flushing if we've reserved more than half of our available free space. Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: David Sterba <dsterba@suse.com>