diff options
author | Naohiro Aota <naohiro.aota@wdc.com> | 2020-02-25 12:56:09 +0900 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-03-23 17:01:48 +0100 |
commit | 3b4ffa4088404446edfffd9cd8673c7826e76530 (patch) | |
tree | 3ff70bb8d7e2babfe22c891d9221a766bc6d25e0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | c4a816c67c396b1a06abf77bd249ac6ad02861b3 (diff) |
btrfs: refactor find_free_dev_extent_start()
Factor out two functions from find_free_dev_extent_start().
dev_extent_search_start() decides the starting position of the search.
dev_extent_hole_check() checks if a hole found is suitable for device
extent allocation.
These functions also have the switch-cases to change the allocation
behavior depending on the policy.
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions