From: Tang Junhui <tang.junhui@xxxxxxxxxx> set_gc_sectors() has been called in bch_gc_thread(), and it was called again in bch_btree_gc_finish() . The following call is unnecessary, so delete it. Signed-off-by: Tang Junhui <tang.junhui@xxxxxxxxxx> --- drivers/md/bcache/btree.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/md/bcache/btree.c b/drivers/md/bcache/btree.c index a43eedd..c80e64e 100644 --- a/drivers/md/bcache/btree.c +++ b/drivers/md/bcache/btree.c @@ -1657,7 +1657,6 @@ static size_t bch_btree_gc_finish(struct cache_set *c) mutex_lock(&c->bucket_lock); - set_gc_sectors(c); c->gc_mark_valid = 1; c->need_gc = 0; -- 2.8.1.windows.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bcache" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html