bcachefs: Better use of locking helpers
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 21 Aug 2022 22:17:51 +0000 (18:17 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:39 +0000 (17:09 -0400)
commitd4263e563879f6dda86052881fbbc9e21e6e07f5
treed2a21dd456d9b2da616f11f1c0b1cce445c8b091
parent8e5696698d140f599586426fb9a897abb0eaa576
bcachefs: Better use of locking helpers

Held btree locks are tracked in btree_path->nodes_locked and
btree_path->nodes_intent_locked. Upcoming patches are going to change
the representation in struct btree_path, so this patch switches to
proper helpers instead of direct access to these fields.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/btree_iter.c
fs/bcachefs/btree_locking.c
fs/bcachefs/btree_locking.h
fs/bcachefs/btree_update_leaf.c