X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Freadahead-replay.c;h=3984c36c3e4dfdb2deab50d0efbcc06049de99d3;hp=d2de7ef2887b67620bc9cafc42838929e51bfd13;hb=37f85e66e8f396b6f758e063531b95531aef628e;hpb=f9276855a1d270b6c3f857cdaf2c4b49920c2228 diff --git a/src/readahead-replay.c b/src/readahead-replay.c index d2de7ef28..3984c36c3 100644 --- a/src/readahead-replay.c +++ b/src/readahead-replay.c @@ -94,7 +94,7 @@ static int unpack_file(FILE *pack) { any = true; if (fd >= 0) - if (posix_fadvise(fd, b * PAGE_SIZE, (c - b) * PAGE_SIZE, POSIX_FADV_WILLNEED) < 0) { + if (posix_fadvise(fd, b * page_size(), (c - b) * page_size(), POSIX_FADV_WILLNEED) < 0) { log_warning("posix_fadvise() failed: %m"); goto finish; }