Negative dentries, 20 years later
Negative dentries, 20 years later
Posted Apr 11, 2022 22:13 UTC (Mon) by willy (subscriber, #9762)In reply to: Negative dentries, 20 years later by cesarb
Parent article: Negative dentries, 20 years later
By all means try to implement this, but I think it'll be vastly inferior to the current dcache.
Lookup is currently hash(directory pointer, component) and search the global hash table. What you're proposing would be a per-directory data structure to search, so a massive change.
Also, you'd need to be able to query the filesystem for the "previous" and "next" entries ... for whatever sort you think needs to be used (filesystem directories are not necessarily sorted in any way you think they are).