From: Lennart Poettering Date: Wed, 29 Sep 2010 01:11:35 +0000 (+0200) Subject: readahead: preload pack file X-Git-Tag: v11~30 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=bdb0e14d278199037e74cef8c078f5dcce6a09fe;hp=cf895f30766d381a8fc07cc48cab1039fbff1c2d readahead: preload pack file --- 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;