From 0840ce2d4944bf1b14ed92f10db220991c1e94c9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 30 Sep 2010 00:52:48 +0200 Subject: [PATCH] readahead: ignore deleted files --- src/readahead-collect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/readahead-collect.c b/src/readahead-collect.c index 75e7a2870..a9f544dd3 100644 --- a/src/readahead-collect.c +++ b/src/readahead-collect.c @@ -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 */ -- 2.30.2