diff options
| author | Nikolay Borisov <nborisov@suse.com> | 2019-03-27 15:24:18 +0300 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2019-04-29 20:02:38 +0300 |
| commit | 929be17a9b49b10743c3db304f939d27da1abd2f (patch) | |
| tree | 8dde03ac85d946a9d09bb6fb5b4f3f41a67ef614 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 45bfcfc168f84f498d9825ec20ff3f4ee9208e04 (diff) | |
| download | linux-929be17a9b49b10743c3db304f939d27da1abd2f.tar.xz | |
btrfs: Switch btrfs_trim_free_extents to find_first_clear_extent_bit
Instead of always calling the allocator to search for a free extent,
that satisfies the input criteria, switch btrfs_trim_free_extents to
using find_first_clear_extent_bit. With this change it's no longer
necessary to read the device tree in order to figure out holes in
the devices.
Now the code always searches in-memory data structure to figure out the
space range which contains the requested which should result in speed
improvements.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
