This only became a problem with the previous fs-compress change.
int fs_wrapper_write_stream_finish(struct fs_file *file, bool success)
{
+ if (file->output == NULL)
+ return fs_write_stream_finish_async(file->parent);
+
if (!success) {
fs_write_stream_abort_parent(file, &file->output);
return -1;
}
-
- if (fs_write_stream_finish(file->parent, &file->output) < 0)
- return -1;
- return 1;
+ return fs_write_stream_finish(file->parent, &file->output);
}
int fs_wrapper_lock(struct fs_file *file, unsigned int secs,