Negative dentries, 20 years later
Negative dentries, 20 years later
Posted Apr 12, 2022 20:54 UTC (Tue) by cesarb (subscriber, #6266)In reply to: Negative dentries, 20 years later by NYKevin
Parent article: Negative dentries, 20 years later
> We're not trying to figure out whether the bucket is occupied, we're trying to find its nearest occupied neighbors so that we can find an empty range of buckets.
Actually, now that I thought about it better, not even that might be necessary. A hash bucket itself is already a "range" of directory entries, since it being empty means that none of the entries hashing to that bucket are present. Since the number of hash buckets is limited, that could be enough to limit the number of negative "ranges".