bcachefs: btree_and_journal_iter
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 28 Dec 2019 01:51:35 +0000 (20:51 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:35 +0000 (17:08 -0400)
commit5c4a5cd5b379567f648c0f5d0f9ec7550bc8b67e
tree4dd2c2474f8cd221d1333e1c07082cb2fad4dc10
parent8b53852d0a80ec4e438205bf8eb3a5a73ee8238c
bcachefs: btree_and_journal_iter

Introduce a new iterator that iterates over keys in the btree with keys
from the journal overlaid on top. This factors out what the erasure
coding init code was doing manually.

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