summaryrefslogtreecommitdiff
path: root/fs/bcachefs/nocow_locking_types.h
AgeCommit message (Collapse)AuthorFilesLines
2023-10-23bcachefs: Improved nocow lockingKent Overstreet1-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>