/* Lightweight object checks. We want this to be fast, so that we won't
* slowdown every journal_file_move_to_object() call too much. */
-static int journal_file_check_object(JournalFile *f, uint64_t offset, Object *o) {
- assert(f);
+static int check_object(Object *o, uint64_t offset) {
assert(o);
switch (o->object.type) {
if (r < 0)
return r;
- r = journal_file_check_object(f, offset, o);
+ r = check_object(o, offset);
if (r < 0)
return r;
"Attempt to read object of unexpected type: %" PRIu64,
offset);
- r = journal_file_check_object(f, offset, &o);
+ r = check_object(&o, offset);
if (r < 0)
return r;