• Kent Overstreet's avatar
    bcachefs: Convert bch2_gc_done() for_each_btree_key2() · 326568f1
    Kent Overstreet authored
    This converts bch2_gc_stripes_done() and bch2_gc_reflink_done() to the
    new for_each_btree_key_commit() macro.
    
    The new for_each_btree_key2() and for_each_btree_key_commit() macros
    handles transaction retries, allowing us to avoid nested transactions -
    which we want to avoid since they're tricky to do completely correctly
    and upcoming assertions are going to be checking for that.
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
    326568f1
btree_gc.c 50.2 KB