bcachefs: Fix for the stripes mark path and gc
authorKent Overstreet <kent.overstreet@gmail.com>
Wed, 8 May 2019 21:56:05 +0000 (17:56 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:21 +0000 (17:08 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/buckets.c

index 2479ad37775ba2fe8d7b080c41de208acde2262b..d0a288dddb45e710d42e867d97264fc7a27e9f7a 100644 (file)
@@ -994,7 +994,7 @@ static int bch2_mark_stripe(struct bch_fs *c, struct bkey_s_c k,
                return -1;
        }
 
-       if (m->alive)
+       if (!gc && m->alive)
                bch2_stripes_heap_del(c, m, idx);
 
        memset(m, 0, sizeof(*m));