Dealing with negative dentries
Dealing with negative dentries
Posted May 10, 2022 17:26 UTC (Tue) by brenns10 (subscriber, #112114)In reply to: Dealing with negative dentries by nickodell
Parent article: Dealing with negative dentries
> But it's easy to see why the NSS developers started looking up nonexistent files - it solved a pressing performance problem in a cross-platform way that looked to be nearly free. It seems like negative dentries are something of an attractive nuisance - easy to misuse without knowing the performance costs.
You're 100% right though. Userspace shouldn't need to know or care what a dentry is, or worry about the cache pollution they cause. The kernel needs to be smart enough to weed out these useless negative dentries.
