On Sun, Feb 25, 2024 at 07:42:04PM +0800, Yafang Shao wrote: > In our container environment, we've observed that certain containers may > accumulate more than 40GB of slabs, predominantly negative dentries. These > negative dentries remain unreclaimed unless there is memory pressure. Even > after the containers exit, these negative dentries persist. To manage disk > storage efficiently, we employ an agent that identifies container images > eligible for destruction once all instances of that image exit. I understand why you've written this patch, but we really do need to fix this for non-container workloads. See also: https://lore.kernel.org/all/20220402072103.5140-1-hdanton@xxxxxxxx/ https://lore.kernel.org/linux-fsdevel/1611235185-1685-1-git-send-email-gautham.ananthakrishna@xxxxxxxxxx/ https://lore.kernel.org/all/YjDvRPuxPN0GsxLB@xxxxxxxxxxxxxxxxxxxx/ I'm sure theer have been many other threads on this over the years.