提交 3f6ef381 编写于 作者: N Nicholas Swenson 提交者: Kent Overstreet

bcache: stop moving_gc marking buckets that can't be moved.

Signed-off-by: NNicholas Swenson <nks@daterainc.com>
上级 10d9dcf6
......@@ -215,7 +215,10 @@ void bch_moving_gc(struct cache_set *c)
ca->heap.used = 0;
for_each_bucket(b, ca) {
if (!GC_SECTORS_USED(b))
if (GC_MARK(b) == GC_MARK_METADATA ||
!GC_SECTORS_USED(b) ||
GC_SECTORS_USED(b) == ca->sb.bucket_size ||
atomic_read(&b->pin))
continue;
if (!heap_full(&ca->heap)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册