summaryrefslogtreecommitdiff
path: root/src/journal/journal-verify.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-08-21 15:33:21 +0200
committerLennart Poettering <lennart@poettering.net>2012-08-21 15:39:34 +0200
commitfcde238921b857679363a95488a5a5af1dc1f243 (patch)
tree69cc0cd703ffa0d1d726035a3cde5db9d798dbd3 /src/journal/journal-verify.c
parent369f0589218a874a88bc69c5481d8f90f987b7dd (diff)
journal: be more careful when keeping around mmaps we still need
Diffstat (limited to 'src/journal/journal-verify.c')
-rw-r--r--src/journal/journal-verify.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/journal/journal-verify.c b/src/journal/journal-verify.c
index 90739a66c2..9156fd5dc0 100644
--- a/src/journal/journal-verify.c
+++ b/src/journal/journal-verify.c
@@ -249,7 +249,7 @@ static int contains_uint64(MMapCache *m, int fd, uint64_t n, uint64_t p) {
c = (a + b) / 2;
- r = mmap_cache_get(m, fd, PROT_READ|PROT_WRITE, 0, c * sizeof(uint64_t), sizeof(uint64_t), (void **) &z);
+ r = mmap_cache_get(m, fd, PROT_READ|PROT_WRITE, 0, false, c * sizeof(uint64_t), sizeof(uint64_t), NULL, (void **) &z);
if (r < 0)
return r;
@@ -261,9 +261,8 @@ static int contains_uint64(MMapCache *m, int fd, uint64_t n, uint64_t p) {
if (p < *z)
b = c;
- else {
+ else
a = c;
- }
}
return 0;