Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
this lets us get rid of a lot of extra switch statements - in a lot of
places we dispatch on the btree node type, and then the key type, so
this is a nice cleanup across a lot of code.
Also improve the on disk format versioning stuff.
|
|
|
|
exceptionally crappy "tracing", but it's a start at documenting the
places restarts can be triggered
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
|
|
btree_node_merge -> get_sibling -> btree_node_lock could drop locks,
when using linked iterators
|
|
|
|
|
|
Replaces bch2_btree_iter_set_locks_want() - also add more assertions
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
|
|
|
|
BTREE_INSERT_NOUNLOCK means after a sucessful btree update, do not drop
any locks (e.g. while merging nodes).
This is going to be used to fix some locking primarily related to
bi_size in bch_inode_info.
|
|
Fork of drivers/md/bcache
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
|