bcachefs: Factor out bch2_ec_stripes_heap_start()
authorKent Overstreet <kent.overstreet@gmail.com>
Thu, 14 Jan 2021 21:19:23 +0000 (16:19 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:51 +0000 (17:08 -0400)
commitac958006294ab462848bc69b9b5ddb1a8b99e748
tree311ad2a818d2959fa9a3117d87f2b37c833acfa6
parentedfbba58e3e7a94900d24d266e6365b1ab531e3b
bcachefs: Factor out bch2_ec_stripes_heap_start()

This fixes a bug where mark and sweep gc incorrectly was clearing out
the stripes heap and causing assertions to fire later - simpler to just
create the stripes heap after gc has finished.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_gc.c
fs/bcachefs/ec.c
fs/bcachefs/ec.h
fs/bcachefs/recovery.c