• F
    btrfs: use a structure to pass arguments to backref walking functions · a2c8d27e
    Filipe Manana 提交于
    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: NFilipe Manana <fdmanana@suse.com>
    Signed-off-by: NDavid Sterba <dsterba@suse.com>
    a2c8d27e
scrub.c 124.6 KB