return new;
}
-struct btree_path * __must_check
-__bch2_btree_path_make_mut(struct btree_trans *trans,
- struct btree_path *path, bool intent)
+struct btree_path *__bch2_btree_path_make_mut(struct btree_trans *trans,
+ struct btree_path *path, bool intent)
{
__btree_path_put(path, intent);
path = btree_path_clone(trans, path, intent);
#ifdef CONFIG_BCACHEFS_DEBUG
path->ip_allocated = _RET_IP_;
#endif
+ path->should_be_locked = false;
return path;
}
path = bch2_btree_path_make_mut(trans, path, intent);
path->pos = new_pos;
- path->should_be_locked = false;
trans->paths_sorted = false;
if (unlikely(path->cached)) {
{
if (path->ref > 1 || path->preserve)
path = __bch2_btree_path_make_mut(trans, path, intent);
+ path->should_be_locked = false;
return path;
}