chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
locale: fix LC_MESSAGES variable name
[elogind.git]
/
src
/
readahead-replay.c
diff --git
a/src/readahead-replay.c
b/src/readahead-replay.c
index d2de7ef2887b67620bc9cafc42838929e51bfd13..fee2171dd20114763d27943bbd8180ef07c71a5d 100644
(file)
--- 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)
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;
}
log_warning("posix_fadvise() failed: %m");
goto finish;
}
@@
-192,7
+192,7
@@
static int replay(const char *root) {
log_debug("Replaying...");
log_debug("Replaying...");
- if (access("/
dev/.
run/systemd/readahead/noreplay", F_OK) >= 0) {
+ if (access("/run/systemd/readahead/noreplay", F_OK) >= 0) {
log_debug("Got termination request");
goto done;
}
log_debug("Got termination request");
goto done;
}