summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/readahead-replay.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/readahead-replay.c b/src/readahead-replay.c
index e22fc04392..cb93fae806 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;