Commit ee94c413 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Delete a faulty assertion

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent c515e3f0
...@@ -1011,12 +1011,11 @@ static int bch2_btree_path_traverse_all(struct btree_trans *trans) ...@@ -1011,12 +1011,11 @@ static int bch2_btree_path_traverse_all(struct btree_trans *trans)
} }
/* /*
* BTREE_ITER_NEED_RELOCK is ok here - if we called bch2_trans_unlock() * We used to assert that all paths had been traversed here
* and relock(), relock() won't relock since path->should_be_locked * (path->uptodate < BTREE_ITER_NEED_TRAVERSE); however, since
* isn't set yet, which is all fine * path->Should_be_locked is not set yet, we we might have unlocked and
* then failed to relock a path - that's fine.
*/ */
trans_for_each_path(trans, path)
BUG_ON(path->uptodate >= BTREE_ITER_NEED_TRAVERSE);
err: err:
bch2_btree_cache_cannibalize_unlock(c); bch2_btree_cache_cannibalize_unlock(c);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment