diff options
| author | 2018-11-02 09:39:47 +0800 | |
|---|---|---|
| committer | 2018-12-17 14:51:26 +0100 | |
| commit | b4bd745d1230ddcf8de408997db9a45cd696508d (patch) | |
| tree | 85f61b73ab803664de68eeaaf69d5b1ed79e3c45 /tools/lib/python | |
| parent | btrfs: extent-tree: Detect bytes_pinned underflow earlier (diff) | |
btrfs: Introduce find_free_extent_ctl structure for later rework
Instead of tons of different local variables in find_free_extent(),
extract them into find_free_extent_ctl structure, and add better
explanation for them.
Some modification may looks redundant, but will later greatly simplify
function parameter list during find_free_extent() refactor.
Also add two comments to co-operate with fb5c39d7a887 ("btrfs: don't use
ctl->free_space for max_extent_size"), to make ffe_ctl->max_extent_size
update more reader-friendly.
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Su Yue <suy.fnst@cn.fujitsu.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
