diff options
author | Qu Wenruo <wqu@suse.com> | 2018-09-05 14:08:21 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-10-31 18:24:14 +0100 |
commit | cdd00958e4463465f2781252e86c76fb32a699ce (patch) | |
tree | c47c83778f0534a4259788a01d787a89ed0334fa /inode-item.c | |
parent | 65c3665811d0c23e764a673daa29e3a02866c379 (diff) |
btrfs-progs: Introduce function to find next sibling tree block
Introduce a new function, btrfs_next_sibling_tree_block(), which could
find any sibling tree blocks at path->lowest_level, unlike level 0
limited btrfs_next_leaf().
Since this function is more generic than btrfs_next_leaf(), also make
btrfs_next_leaf() a wrapper of btrfs_next_sibling_tree_block(), to keep
the interface the same as kernel.
This would provide the basis for later breadth-first search print-tree.
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'inode-item.c')
0 files changed, 0 insertions, 0 deletions