Commit 8ce1db80 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Fix remove_dirent()

We were missing an iter_traverse().
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent cecfed9b
...@@ -158,9 +158,10 @@ static int __remove_dirent(struct btree_trans *trans, struct bpos pos) ...@@ -158,9 +158,10 @@ static int __remove_dirent(struct btree_trans *trans, struct bpos pos)
bch2_trans_iter_init(trans, &iter, BTREE_ID_dirents, pos, BTREE_ITER_INTENT); bch2_trans_iter_init(trans, &iter, BTREE_ID_dirents, pos, BTREE_ITER_INTENT);
ret = bch2_hash_delete_at(trans, bch2_dirent_hash_desc, ret = bch2_btree_iter_traverse(&iter) ?:
&dir_hash_info, &iter, bch2_hash_delete_at(trans, bch2_dirent_hash_desc,
BTREE_UPDATE_INTERNAL_SNAPSHOT_NODE); &dir_hash_info, &iter,
BTREE_UPDATE_INTERNAL_SNAPSHOT_NODE);
bch2_trans_iter_exit(trans, &iter); bch2_trans_iter_exit(trans, &iter);
err: err:
bch_err_fn(c, ret); bch_err_fn(c, ret);
......
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