mirror of
https://github.com/versity/scoutfs.git
synced 2026-02-10 04:30:10 +00:00
The mapping of size index item keys to lock names and key ranges was completely bonkers. Its method of setting variable length masks could easily create locks with different names whose key ranges overlapped. We map ranges of sizes to locks and the big change is that all the inodes in these sizes are covered. We can't try to have groups of inodes per size because that would result in too many full precision size locks. With this fix the size index item locks no longer trigger warnings that we're creating locks with overlapping keys. Signed-off-by: Zach Brown <zab@versity.com>