mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-17 12:34:01 +00:00
bcache: stop moving_gc marking buckets that can't be moved.
Signed-off-by: Nicholas Swenson <nks@daterainc.com>
This commit is contained in:
parent
10d9dcf6ee
commit
3f6ef38110
1 changed files with 4 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue