• Kent Overstreet's avatar
    bcachefs: Improved nocow locking · 350175bf
    Kent Overstreet authored
    This improves the nocow lock table so that hash table entries have
    multiple locks, and locks specify which bucket they're for - i.e. we can
    now resolve hash collisions.
    
    This is important because the allocator has to skip buckets that are
    locked in the nocow lock table, and previously hash collisions would
    cause it to spuriously skip unlocked buckets.
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
    350175bf
nocow_locking.h 1.55 KB