diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-11 18:07:40 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-11 18:07:40 +0000 |
commit | 0d8a7a1b0662e50c962cd3f14d7ef1a65d5a630b (patch) | |
tree | cdfdedd91eaa12cd3e46064984f2e66f2a562bd3 /base/file_util_linux.cc | |
parent | cfe54f8ffaee27afc1deda0c9e8ada192df514fd (diff) | |
download | chromium_src-0d8a7a1b0662e50c962cd3f14d7ef1a65d5a630b.zip chromium_src-0d8a7a1b0662e50c962cd3f14d7ef1a65d5a630b.tar.gz chromium_src-0d8a7a1b0662e50c962cd3f14d7ef1a65d5a630b.tar.bz2 |
* Revert "Por rt flush_cache tool."
This reverts commit 3bd600b37c5ee613c004c84736ee3cb69434562a.
Review URL: http://codereview.chromium.org/9774
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5184 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_linux.cc')
-rw-r--r-- | base/file_util_linux.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/base/file_util_linux.cc b/base/file_util_linux.cc index d2a6870..f776c91 100644 --- a/base/file_util_linux.cc +++ b/base/file_util_linux.cc @@ -72,16 +72,4 @@ bool CopyFile(const FilePath& from_path, const FilePath& to_path) { return result; } -bool EvictFileFromSystemCache(const FilePath path) { - int fd = open(path.value().c_str(), O_RDONLY); - if (fd < 0) - return false; - if (fdatasync(fd) != 0) - return false; - if (posix_fadvise(fd, 0, 0, POSIX_FADV_DONTNEED) != 0) - return false; - close(fd); - return true; -} - } // namespace file_util |