summaryrefslogtreecommitdiff
path: root/src/readahead-replay.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-10-26 21:28:39 +0200
committerLennart Poettering <lennart@poettering.net>2010-10-26 21:28:39 +0200
commitde58283f71162d3e6522b67e044f8f9ee9fdf066 (patch)
tree3ae6fa8dba1d47f9382c039402b32ec468e98f9b /src/readahead-replay.c
parent415dbd2e542e7a0f6b15350e1c5fd00dca54b91d (diff)
readahead: bump a device's request_nr when enabling readahead
Diffstat (limited to 'src/readahead-replay.c')
-rw-r--r--src/readahead-replay.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/readahead-replay.c b/src/readahead-replay.c
index cb93fae806..ab0c8084c8 100644
--- a/src/readahead-replay.c
+++ b/src/readahead-replay.c
@@ -127,6 +127,7 @@ static int replay(const char *root) {
assert(root);
write_one_line_file("/proc/self/oom_score_adj", "1000");
+ bump_request_nr(root);
if (asprintf(&pack_fn, "%s/.readahead", root) < 0) {
log_error("Out of memory");