OSDN Git Service

CachePruning: Allow limiting the number of files in the cache directory.
authorPeter Collingbourne <peter@pcc.me.uk>
Wed, 22 Nov 2017 18:27:31 +0000 (18:27 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Wed, 22 Nov 2017 18:27:31 +0000 (18:27 +0000)
commitd159fdd448e7e44befc2f71b896cf146cae44c73
treea22d739580f3112c1d81d89385e2cc80a2875563
parent6d6a4920f5a2022d368d48de824cd87e96a3dac8
CachePruning: Allow limiting the number of files in the cache directory.

The default limit is 1000000 but it can be configured with a cache
policy. The motivation is that some filesystems (notably ext4) have
a limit on the number of files that can be contained in a directory
(separate from the inode limit).

Differential Revision: https://reviews.llvm.org/D40327

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@318857 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/CachePruning.h
lib/Support/CachePruning.cpp