Skip to contentSkip to conversation

bcache: remove redundant LIST_HEAD(journal) from run_cache_set()

PATCH New Coly Li 1 participant 1 message May 1, 2019

Subsystems (2)
lore
Share & tools
lore

Coly Li

author
#0 lore raw

PATCH v2 1/1 bcache: remove redundant LIST_HEAD(journal) from run_cache_set()

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")
Cc Shenghui Wang <[email protected]>
---
 drivers/md/bcache/super.c | 1 -
 1 file changed, 1 deletion(-)
drivers/md/bcache/super.c +0 -1
index 0ffe9acee9d8..1b63ac876169 100644
@@ -1800,7 +1800,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;
 
Signature · 1 line
2.16.4