Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6268dc2c authored by Shenghui Wang's avatar Shenghui Wang Committed by Jens Axboe
Browse files

bcache: free heap cache_set->flush_btree in bch_journal_free



Free the cache_set->flush_bree heap memory on journal free.

Signed-off-by: default avatarWang Sheng-Hui <shhuiw@foxmail.com>
Signed-off-by: default avatarColy Li <colyli@suse.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent a56489d4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -828,6 +828,7 @@ void bch_journal_free(struct cache_set *c)
	free_pages((unsigned long) c->journal.w[1].data, JSET_BITS);
	free_pages((unsigned long) c->journal.w[0].data, JSET_BITS);
	free_fifo(&c->journal.pin);
	free_heap(&c->flush_btree);
}

int bch_journal_alloc(struct cache_set *c)