• K
    bcache: Rework allocator reserves · 78365411
    Kent Overstreet 提交于
    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: NKent Overstreet <kmo@daterainc.com>
    78365411
alloc.c 17.8 KB