Commit cc65f565 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Improve bch2_dev_freespace_init()



This makes bch2_dev_freespace_init() much faster: instead of processing
every bucket on the device one at a time, we handle ranges of missing
keys all at once: the freespace btree is an extents style btree, so we
only have to insert one freespace key for every range of missing keys
in the alloc btree.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 7c057d35
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment