summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/nocow_locking_types.h
Commit message (Collapse)AuthorAgeFilesLines
* bcachefs: Improved nocow lockingKent Overstreet2023-10-221-0/+20
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: Kent Overstreet <kent.overstreet@linux.dev>