Lines Matching defs:file
3 // found in the LICENSE file.
16 bool EvictFileFromSystemCache(const FilePath& file) {
17 // There aren't any really direct ways to purge a file from the UBC. From
18 // talking with Amit Singh, the safest is to mmap the file with MAP_FILE (the
20 // open should then have to load the file from disk.
23 if (!GetFileSize(file, &length)) {
24 DLOG(ERROR) << "failed to get size of " << file.value();
28 // When a file is empty, we do not need to evict it from cache.
31 DLOG(WARNING) << "file size is zero, will not attempt to map to memory";
36 if (!mapped_file.Initialize(file)) {
37 DLOG(WARNING) << "failed to memory map " << file.value();
43 DLOG(WARNING) << "failed to invalidate memory map of " << file.value()