readahead: ignore deleted files

This commit is contained in:
Lennart Poettering 2010-09-30 00:52:48 +02:00
parent 7e911837c1
commit 0840ce2d49
1 changed files with 1 additions and 1 deletions

View File

@ -398,8 +398,8 @@ static int collect(const char *root) {
char_array_0(fn);
if ((k = readlink_malloc(fn, &p)) >= 0) {
if (startswith(p, "/tmp") ||
endswith(p, " (deleted)") ||
hashmap_get(files, p))
/* Not interesting, or
* already read */