Skip to content

Commit

Permalink
btrfs: use a structure to pass arguments to backref walking functions
Browse files Browse the repository at this point in the history
The public backref walking functions have quite a lot of arguments that
are passed down the call stack to find_parent_nodes(), the core function
of the backref walking code.

The next patches in series will need to add even arguments to these
functions that should be passed not only to find_parent_nodes(), but also
to other functions used by the later (directly or even lower in the call
stack).

So create a structure to hold all these arguments and state used by the
main backref walking function, find_parent_nodes(), and use it as the
argument for the public backref walking functions iterate_extent_inodes(),
btrfs_find_all_leafs() and btrfs_find_all_roots().

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
  • Loading branch information
Filipe Manana authored and David Sterba committed Dec 5, 2022
1 parent 6ce6ba5 commit a2c8d27
Show file tree
Hide file tree
Showing 7 changed files with 328 additions and 227 deletions.
Loading

0 comments on commit a2c8d27

Please sign in to comment.