• Kent Overstreet's avatar
    bcachefs: KEY_TYPE_alloc_v4 · 3d48a7f8
    Kent Overstreet authored
    This introduces a new alloc key which doesn't use varints. Soon we'll be
    adding backpointers and storing them in alloc keys, which means our
    pack/unpack workflow for alloc keys won't really work - we'll need to be
    mutating alloc keys in place.
    
    Instead of bch2_alloc_unpack(), we now have bch2_alloc_to_v4() that
    converts older types of alloc keys to v4 if needed.
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
    3d48a7f8
bkey_methods.c 11 KB