[PATCH v2 1/4] fs/dcache: Limit numbers of negative dentries

2017-07-21 Thread Waiman Long
The number of positive dentries is limited by the number of files in the filesystems. The number of negative dentries, however, has no limit other than the total amount of memory available in the system. So a rogue application that generates a lot of negative dentries can potentially exhaust most

[PATCH v2 1/4] fs/dcache: Limit numbers of negative dentries

2017-07-21 Thread Waiman Long
The number of positive dentries is limited by the number of files in the filesystems. The number of negative dentries, however, has no limit other than the total amount of memory available in the system. So a rogue application that generates a lot of negative dentries can potentially exhaust most