[CachePruning] Fix comment about ext4 per-directory file limit. NFC

There is a limit on number of subdirectories if dir_nlinks is not
enabled (31998), but per-directory number of files is not limited.

llvm-svn: 329648
This commit is contained in:
Fangrui Song 2018-04-10 00:12:28 +00:00
parent 4be0339023
commit 0b7c424737
1 changed files with 2 additions and 3 deletions
llvm/include/llvm/Support

View File

@ -52,9 +52,8 @@ struct CachePruningPolicy {
/// the number of files based pruning.
///
/// This defaults to 1000000 because with that many files there are
/// diminishing returns on the effectiveness of the cache, and some file
/// systems have a limit on how many files can be contained in a directory
/// (notably ext4, which is limited to around 6000000 files).
/// diminishing returns on the effectiveness of the cache, and file
/// systems have a limit on total number of files.
uint64_t MaxSizeFiles = 1000000;
};