bcache: Revert "bcache: free heap cache_set->flush_btree in bch_journal_free"
authorColy Li <colyli@suse.de>
Fri, 28 Jun 2019 11:59:53 +0000 (19:59 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 28 Jun 2019 13:39:17 +0000 (07:39 -0600)
This reverts commit 6268dc2c4703aabfb0b35681be709acf4c2826c6.

This patch depends on commit c4dc2497d50d ("bcache: fix high CPU
occupancy during journal") which is reverted in previous patch. So
revert this one too.

Fixes: 6268dc2c4703 ("bcache: free heap cache_set->flush_btree in bch_journal_free")
Signed-off-by: Coly Li <colyli@suse.de>
Cc: stable@vger.kernel.org
Cc: Shenghui Wang <shhuiw@foxmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/journal.c

index 3d321bffddc95918b6aff5dc058299a8263681ae..11d8c93b88bb3eabb2da3a40e09c593f03992f6b 100644 (file)
@@ -884,7 +884,6 @@ 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)