mirror of
https://github.com/a52xq-dev/kernel.git
synced 2026-10-18 21:58:11 +07:00
bcache: remove redundant LIST_HEAD(journal) from run_cache_set()
[ Upstream commit cdca22bcbc64fc83dadb8d927df400a8d86ddabb ]
Commit 95f18c9d1310 ("bcache: avoid potential memleak of list of
journal_replay(s) in the CACHE_SYNC branch of run_cache_set") forgets
to remove the original define of LIST_HEAD(journal), which makes
the change no take effect. This patch removes redundant variable
LIST_HEAD(journal) from run_cache_set(), to make Shenghui's fix
working.
Fixes: 95f18c9d1310 ("bcache: avoid potential memleak of list of journal_replay(s) in the CACHE_SYNC branch of run_cache_set")
Reported-by: Juha Aatrokoski <juha.aatrokoski@aalto.fi>
Cc: Shenghui Wang <shhuiw@foxmail.com>
Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
08fdaee2d9
commit
ad16dfef4a
1 changed files with 0 additions and 1 deletions
|
|
@ -1768,7 +1768,6 @@ static int run_cache_set(struct cache_set *c)
|
|||
set_gc_sectors(c);
|
||||
|
||||
if (CACHE_SYNC(&c->sb)) {
|
||||
LIST_HEAD(journal);
|
||||
struct bkey *k;
|
||||
struct jset *j;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue