diff options
| author | Qu Wenruo <[email protected]> | 2020-02-14 13:48:20 +0800 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2020-05-25 11:25:16 +0200 |
| commit | 71f572a9e82fb7ed6f8c625e2682160f3a498db3 (patch) | |
| tree | ddbb219772a762ac10ea112662877ef631ba56bb /tools/perf/scripts/python | |
| parent | c39c2ddc67024979915c4df4e30da96a3e7619b0 (diff) | |
btrfs: reloc: use btrfs_backref_iter infrastructure
In the core function of relocation, build_backref_tree, it needs to
iterate all backref items of one tree block.
Use btrfs_backref_iter infrastructure to do the loop and make the code
more readable.
The backref items look would be much more easier to read:
ret = btrfs_backref_iter_start(iter, cur->bytenr);
for (; ret == 0; ret = btrfs_backref_iter_next(iter)) {
/* The really important work */
}
Reviewed-by: Johannes Thumshirn <[email protected]>
Reviewed-by: Josef Bacik <[email protected]>
Signed-off-by: Qu Wenruo <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions