diff options
Diffstat (limited to 'src/journal/journal-file.h')
-rw-r--r-- | src/journal/journal-file.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/journal/journal-file.h b/src/journal/journal-file.h index 211e121d5c..c5a92bc5ff 100644 --- a/src/journal/journal-file.h +++ b/src/journal/journal-file.h @@ -211,15 +211,3 @@ static unsigned type_to_context(int type) { /* One context for each type, plus one catch-all for the rest */ return type > 0 && type < _OBJECT_TYPE_MAX ? type : 0; } - -static inline int journal_file_object_keep(JournalFile *f, Object *o, uint64_t offset, void **release_cookie) { - unsigned context = type_to_context(o->object.type); - uint64_t s = le64toh(o->object.size); - - return mmap_cache_get(f->mmap, f->fd, f->prot, context, true, - offset, s, &f->last_stat, NULL, release_cookie); -} - -static inline int journal_file_object_release(JournalFile *f, void *release_cookie) { - return mmap_cache_release(f->mmap, f->fd, release_cookie); -} |