• Kent Overstreet's avatar
    bcache: Rework allocator reserves · 78365411
    Kent Overstreet authored
    We need a reserve for allocating buckets for new btree nodes - and now that
    we've got multiple btrees, it really needs to be per btree.
    
    This reworks the reserves so we've got separate freelists for each reserve
    instead of watermarks, which seems to make things a bit cleaner, and it adds
    some code so that btree_split() can make sure the reserve is available before it
    starts.
    Signed-off-by: default avatarKent Overstreet <kmo@daterainc.com>
    78365411
super.c 49.6 KB