• Kent Overstreet's avatar
    bcachefs: Refactor bch2_btree_iter() · a1e82d35
    Kent Overstreet authored
    This splits bch2_btree_iter() up into two functions: an inner function
    that handles BTREE_ITER_WITH_JOURNAL, BTREE_ITER_WITH_UPDATES, and
    iterating acrcoss leaf nodes, and an outer one that implements
    BTREE_ITER_FILTER_SNAPHSOTS.
    
    This is prep work for remember a btree_path at our update position in
    BTREE_ITER_FILTER_SNAPSHOTS mode.
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
    a1e82d35
btree_iter.h 12.3 KB