From: Kent Overstreet Date: Wed, 8 May 2019 21:56:05 +0000 (-0400) Subject: bcachefs: Fix for the stripes mark path and gc X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7cfac5f5064331b99928000907e9b4d646cdfc71;p=linux.git bcachefs: Fix for the stripes mark path and gc Signed-off-by: Kent Overstreet --- 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));