• Kent Overstreet's avatar
    bcachefs: Kill allocator threads & freelists · f25d8215
    Kent Overstreet authored
    Now that we have new persistent data structures for the allocator, this
    patch converts the allocator to use them.
    
    Now, foreground bucket allocation uses the freespace btree to find
    buckets to allocate, instead of popping buckets off the freelist.
    
    The background allocator threads are no longer needed and are deleted,
    as well as the allocator freelists. Now we only need background tasks
    for invalidating buckets containing cached data (when we are low on
    empty buckets), and for issuing discards.
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
    f25d8215
super.c 44.9 KB