bcachefs: Free iterator in bch2_btree_delete_range_trans()

This is specifically to speed up bch2_inode_rm(), so that we're not
traversing iterators we're done with.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2021-03-28 21:20:22 -04:00 committed by Kent Overstreet
parent c5f51cdd5f
commit a84b6c50f1

View File

@ -1187,7 +1187,7 @@ retry:
goto retry;
}
bch2_trans_iter_put(trans, iter);
bch2_trans_iter_free(trans, iter);
return ret;
}