projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a56489d
)
bcache: free heap cache_set->flush_btree in bch_journal_free
author
Shenghui Wang
<shhuiw@foxmail.com>
Thu, 26 Jul 2018 04:17:38 +0000
(12:17 +0800)
committer
Jens Axboe
<axboe@kernel.dk>
Fri, 27 Jul 2018 15:15:46 +0000
(09:15 -0600)
Free the cache_set->flush_bree heap memory on journal free.
Signed-off-by: Wang Sheng-Hui <shhuiw@foxmail.com>
Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/journal.c
patch
|
blob
|
history
diff --git
a/drivers/md/bcache/journal.c
b/drivers/md/bcache/journal.c
index 18f1b523962042d07e3c27fb6bf2e917a44279b9..10748c626a1dd8835f3c86044b488830a19d348c 100644
(file)
--- 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)