From bdb0e14d278199037e74cef8c078f5dcce6a09fe Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 29 Sep 2010 03:11:35 +0200 Subject: [PATCH] readahead: preload pack file --- src/readahead-replay.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/readahead-replay.c b/src/readahead-replay.c index e22fc0439..cb93fae80 100644 --- a/src/readahead-replay.c +++ b/src/readahead-replay.c @@ -145,6 +145,8 @@ static int replay(const char *root) { goto finish; } + posix_fadvise(fileno(pack), 0, 0, POSIX_FADV_WILLNEED); + if ((inotify_fd = open_inotify()) < 0) { r = inotify_fd; goto finish; -- 2.30.2