]> git.baikalelectronics.ru Git - kernel.git/commit
bcache: remove redundant LIST_HEAD(journal) from run_cache_set()
authorColy Li <colyli@suse.de>
Tue, 30 Apr 2019 14:02:25 +0000 (22:02 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 30 Apr 2019 14:20:46 +0000 (08:20 -0600)
commit3ac0b6fcb7867aaf99f3e5187cd2319635a93155
tree4dc562ec8fb0d7e8eb424930daf581647049a82b
parente4f5a65119dd49e87fa73926fa7773e32f0e3ce5
bcache: remove redundant LIST_HEAD(journal) from run_cache_set()

Commit f07e45ef25d2 ("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: f07e45ef25d2 ("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>
drivers/md/bcache/super.c