• Kent Overstreet's avatar
    bcachefs: Make bch2_btree_cache_scan() try harder · 05a49d22
    Kent Overstreet authored
    Previously, when bch2_btree_cache_scan() attempted to reclaim a node but
    failed (because trylock failed, because it was dirty, etc.), it would
    count that against the number of nodes it was scanning and attempting to
    free. This patch changes that behaviour, so that now we only count nodes
    that we then don't free if they have the accessed bit (which we also
    clear).
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
    05a49d22
btree_cache.c 27 KB