From: Shenghui Wang Date: Thu, 26 Jul 2018 04:17:38 +0000 (+0800) Subject: bcache: free heap cache_set->flush_btree in bch_journal_free X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=6268dc2c4703aabfb0b35681be709acf4c2826c6;p=openwrt%2Fstaging%2Fblogic.git 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: Wang Sheng-Hui Signed-off-by: Coly Li Signed-off-by: Jens Axboe --- diff --git a/drivers/md/bcache/journal.c b/drivers/md/bcache/journal.c index 18f1b5239620..10748c626a1d 100644 --- a/drivers/md/bcache/journal.c +++ b/drivers/md/bcache/journal.c @@ -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)