• Kent Overstreet's avatar
    bcachefs: Kill for_each_btree_key() · 27b2df98
    Kent Overstreet authored
    for_each_btree_key() handles transaction restarts, like
    for_each_btree_key2(), but only calls bch2_trans_begin() after a
    transaction restart - for_each_btree_key2() wraps every loop iteration
    in a transaction.
    
    The for_each_btree_key() behaviour is problematic when it leads to
    holding the SRCU lock that prevents key cache reclaim for an unbounded
    amount of time - there's no real need to keep it around.
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
    27b2df98
fsck.c 59.7 KB