bcachefs: Fix gc updating stripes info
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 17 Jan 2021 21:16:37 +0000 (16:16 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:51 +0000 (17:08 -0400)
commita39c74be8059be72fcf6c7cc2f827c38076a25db
tree47570fdf7b6e3d41f1f5124ffd2bddd3cd8a82d6
parent2ef220cba297ef381a980572154fd17aa2a7e3de
bcachefs: Fix gc updating stripes info

The primary stripes radix tree can be sparse, which was causing an
assertion to pop because the one use for gc isn't. Fix this by changing
the algorithm to copy between the two radix trees.

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