bcachefs: set_btree_iter_dontneed also clears should_be_locked
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 13 Apr 2024 22:02:15 +0000 (18:02 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 15 Apr 2024 17:31:15 +0000 (13:31 -0400)
commitad29cf999a9161e7849aa229d2028854f90728c2
tree12c29e7e3262b406997566d0044e869f45a6e8bb
parent3078e059a5e984663c5c2b04485375c84c2700f9
bcachefs: set_btree_iter_dontneed also clears should_be_locked

This is part of a larger series cleaning up the semantics of
should_be_locked and adding assertions around it; if we don't need an
iterator/path anymore, it clearly doesn't need to be locked.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_iter.h