• Kent Overstreet's avatar
    bcachefs: KEY_TYPE_alloc_v2 · 7f4e1d5d
    Kent Overstreet authored
    This introduces a new version of KEY_TYPE_alloc, which uses the new
    varint encoding introduced for inodes. This means we'll eventually be
    able to support much larger bucket sizes (for SMR devices), and the
    read/write time fields are expanded to 64 bits - which will be used in
    the next patch to get rid of the periodic rescaling of those fields.
    
    Also, for buckets that are members of erasure coded stripes, this adds
    persistent fields for the index of the stripe they're members of and the
    stripe redundancy. This is part of work to get rid of having to scan and
    read into memory the alloc and stripes btrees at mount time.
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
    7f4e1d5d
alloc_background.c 36 KB