commit | 78365411b344df35a198b119133e6515c2dcfb9f | [log] [tgz] |
---|---|---|
author | Kent Overstreet <kmo@daterainc.com> | Tue Dec 17 01:29:34 2013 -0800 |
committer | Kent Overstreet <kmo@daterainc.com> | Wed Jan 08 13:05:09 2014 -0800 |
tree | e94c2e1bd0d5dc53e6a938b012e9b20d3a511eca | |
parent | 1dd13c8d3c2d82e1b668d0b4754591291656542a [diff] |
bcache: Rework allocator reserves 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: Kent Overstreet <kmo@daterainc.com>