bcachefs: Fix another iterator leak

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 2020-03-07 13:30:55 -05:00 committed by Kent Overstreet
parent e65fcb4362
commit 27beb81023

View file

@ -424,6 +424,7 @@ static int __bch2_journal_replay_key(struct btree_trans *trans,
return PTR_ERR(iter);
bch2_trans_update(trans, iter, k, BTREE_TRIGGER_NORUN);
bch2_trans_iter_put(trans, iter);
return 0;
}