diff options
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/bcache/btree.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/md/bcache/btree.c b/drivers/md/bcache/btree.c index 15b58239c683..ee372884c405 100644 --- a/drivers/md/bcache/btree.c +++ b/drivers/md/bcache/btree.c | |||
@@ -1410,8 +1410,10 @@ static void btree_gc_start(struct cache_set *c) | |||
1410 | for_each_cache(ca, c, i) | 1410 | for_each_cache(ca, c, i) |
1411 | for_each_bucket(b, ca) { | 1411 | for_each_bucket(b, ca) { |
1412 | b->gc_gen = b->gen; | 1412 | b->gc_gen = b->gen; |
1413 | if (!atomic_read(&b->pin)) | 1413 | if (!atomic_read(&b->pin)) { |
1414 | SET_GC_MARK(b, GC_MARK_RECLAIMABLE); | 1414 | SET_GC_MARK(b, GC_MARK_RECLAIMABLE); |
1415 | SET_GC_SECTORS_USED(b, 0); | ||
1416 | } | ||
1415 | } | 1417 | } |
1416 | 1418 | ||
1417 | mutex_unlock(&c->bucket_lock); | 1419 | mutex_unlock(&c->bucket_lock); |