bcachefs: Tighten up btree locking invariants

New rule is: if a btree path holds any locks it should be holding
precisely the locks wanted (accoringing to path->level and
path->locks_want).

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
Kent Overstreet 2021-09-04 21:23:11 -04:00 • committed by Kent Overstreet
commit 1d3ecd7ea7
3 changed files with 32 additions and 46 deletions