diff options
| author | Qu Wenruo <[email protected]> | 2018-11-02 01:39:49 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2018-12-17 13:51:26 +0000 |
| commit | e1a4184815672c0cd8ea91beca3dd6d0bd4b9e53 (patch) | |
| tree | 48c3b390097ea2823553ac1d6e7bd759dc7a9c96 /fs/btrfs/dev-replace.c | |
| parent | btrfs: Refactor clustered extent allocation into find_free_extent_clustered (diff) | |
| download | kernel-e1a4184815672c0cd8ea91beca3dd6d0bd4b9e53.tar.gz kernel-e1a4184815672c0cd8ea91beca3dd6d0bd4b9e53.zip | |
btrfs: Refactor unclustered extent allocation into find_free_extent_unclustered()
This patch will extract unclsutered extent allocation code into
find_free_extent_unclustered().
And this helper function will use return value to indicate what to do
next.
This should make find_free_extent() a little easier to read.
Signed-off-by: Qu Wenruo <[email protected]>
Reviewed-by: Su Yue <[email protected]>
Reviewed-by: Josef Bacik <[email protected]>
[Update merge conflict with fb5c39d7a887 ("btrfs: don't use ctl->free_space for max_extent_size")]
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
