mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
bcachefs: Fix promote path leak
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
629a21b621
commit
0093b9e970
1 changed files with 2 additions and 2 deletions
|
@ -1924,6 +1924,8 @@ static void promote_free(struct bch_fs *c, struct promote_op *op)
|
|||
{
|
||||
int ret;
|
||||
|
||||
bch2_data_update_exit(&op->write);
|
||||
|
||||
ret = rhashtable_remove_fast(&c->promote_table, &op->hash,
|
||||
bch_promote_params);
|
||||
BUG_ON(ret);
|
||||
|
@ -1939,8 +1941,6 @@ static void promote_done(struct bch_write_op *wop)
|
|||
|
||||
bch2_time_stats_update(&c->times[BCH_TIME_data_promote],
|
||||
op->start_time);
|
||||
|
||||
bch2_data_update_exit(&op->write);
|
||||
promote_free(c, op);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue