diff options
| author | Qu Wenruo <[email protected]> | 2018-11-02 09:39:48 +0800 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2018-12-17 14:51:26 +0100 |
| commit | d06e3bb69009d21802776b8751dfe5deef7102f5 (patch) | |
| tree | 96c78273990af3cf0b007723c6c6afad72c02879 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | b4bd745d1230ddcf8de408997db9a45cd696508d (diff) | |
btrfs: Refactor clustered extent allocation into find_free_extent_clustered
We have two main methods to find free extents inside a block group:
1) clustered allocation
2) unclustered allocation
This patch will extract the clustered allocation into
find_free_extent_clustered() to make it a little easier to read.
Instead of jumping between different labels in find_free_extent(), the
helper function will use return value to indicate different behavior.
Signed-off-by: Qu Wenruo <[email protected]>
Reviewed-by: Su Yue <[email protected]>
Reviewed-by: Josef Bacik <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions