From 7cfac5f5064331b99928000907e9b4d646cdfc71 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Wed, 8 May 2019 17:56:05 -0400 Subject: [PATCH] bcachefs: Fix for the stripes mark path and gc Signed-off-by: Kent Overstreet --- fs/bcachefs/buckets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/bcachefs/buckets.c b/fs/bcachefs/buckets.c index 2479ad37775ba..d0a288dddb45e 100644 --- a/fs/bcachefs/buckets.c +++ b/fs/bcachefs/buckets.c @@ -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)); -- 2.30.2