mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 11:37:06 +02:00
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:
parent
c5f51cdd5f
commit
a84b6c50f1
|
|
@ -1187,7 +1187,7 @@ int bch2_btree_delete_range_trans(struct btree_trans *trans, enum btree_id id,
|
|||
goto retry;
|
||||
}
|
||||
|
||||
bch2_trans_iter_put(trans, iter);
|
||||
bch2_trans_iter_free(trans, iter);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user