diff --git a/src/readahead-collect.c b/src/readahead-collect.c index 47095b1f7..c8490b5d3 100644 --- a/src/readahead-collect.c +++ b/src/readahead-collect.c @@ -324,8 +324,10 @@ static int collect(const char *root) { if ((k = readlink_malloc(fn, &p)) >= 0) { - if (hashmap_get(files, p)) - /* Already read */ + if (startswith(p, "/tmp") || + hashmap_get(files, p)) + /* Not interesting, or + * already read */ free(p); else { unsigned long ul;