summaryrefslogtreecommitdiff
path: root/src/journal/journal-file.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-08-18 01:46:20 +0200
committerLennart Poettering <lennart@poettering.net>2012-08-18 01:46:20 +0200
commit84168d8068bb67dcd5468ab3b376535d81643aef (patch)
tree134286a4aedea80c2775faf54ea708dff29db330 /src/journal/journal-file.c
parentfb9a24b6b1ed5b1f42e6e350ccdb7e11800a83bd (diff)
mmap: resize arrays dynamically
Diffstat (limited to 'src/journal/journal-file.c')
-rw-r--r--src/journal/journal-file.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
index df991a4a07..c6b25ce54b 100644
--- a/src/journal/journal-file.c
+++ b/src/journal/journal-file.c
@@ -2003,10 +2003,7 @@ int journal_file_open(
if (mmap_cache)
f->mmap = mmap_cache_ref(mmap_cache);
else {
- /* One context for each type, plus the zeroth catchall
- * context. One fd for the file plus one for each type
- * (which we need during verification */
- f->mmap = mmap_cache_new(_OBJECT_TYPE_MAX, 1 + _OBJECT_TYPE_MAX);
+ f->mmap = mmap_cache_new();
if (!f->mmap) {
r = -ENOMEM;
goto fail;