• Kent Overstreet's avatar
    bcachefs: Don't reuse reflink btree keyspace · fc0ee376
    Kent Overstreet authored
    We've been seeing difficult to debug "missing indirect extent" bugs,
    that fsck doesn't seem to find.
    
    One possibility is that there was a missing indirect extent, but then a
    new indirect extent was created at the location of the previous indirect
    extent.
    
    This patch eliminates that possibility by always creating new indirect
    extents right after the last one, at the end of the reflink btree.
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
    fc0ee376
bcachefs.h 33.5 KB