diff options
Diffstat (limited to 'drivers/md/bcache/super.c')
-rw-r--r-- | drivers/md/bcache/super.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c index 849ad441cd76..66669c8f4161 100644 --- a/drivers/md/bcache/super.c +++ b/drivers/md/bcache/super.c | |||
@@ -1491,6 +1491,7 @@ struct cache_set *bch_cache_set_alloc(struct cache_sb *sb) | |||
1491 | mutex_init(&c->bucket_lock); | 1491 | mutex_init(&c->bucket_lock); |
1492 | init_waitqueue_head(&c->btree_cache_wait); | 1492 | init_waitqueue_head(&c->btree_cache_wait); |
1493 | init_waitqueue_head(&c->bucket_wait); | 1493 | init_waitqueue_head(&c->bucket_wait); |
1494 | init_waitqueue_head(&c->gc_wait); | ||
1494 | sema_init(&c->uuid_write_mutex, 1); | 1495 | sema_init(&c->uuid_write_mutex, 1); |
1495 | 1496 | ||
1496 | spin_lock_init(&c->btree_gc_time.lock); | 1497 | spin_lock_init(&c->btree_gc_time.lock); |
@@ -1550,6 +1551,7 @@ static void run_cache_set(struct cache_set *c) | |||
1550 | 1551 | ||
1551 | for_each_cache(ca, c, i) | 1552 | for_each_cache(ca, c, i) |
1552 | c->nbuckets += ca->sb.nbuckets; | 1553 | c->nbuckets += ca->sb.nbuckets; |
1554 | set_gc_sectors(c); | ||
1553 | 1555 | ||
1554 | if (CACHE_SYNC(&c->sb)) { | 1556 | if (CACHE_SYNC(&c->sb)) { |
1555 | LIST_HEAD(journal); | 1557 | LIST_HEAD(journal); |