kunmap_atomic(kaddr);
}
will_compress = 1;
+ } else {
+ printk(KERN_DEBUG "%s: btrfs_compress_pages failed, ret = %d, start = %lu, end = %lu", __FUNCTION__, ret, start, end);
}
}
cont:
struct page *in_page = NULL;
struct page *out_page = NULL;
unsigned long bytes_left;
+ unsigned long saved_avail_in;
*out_pages = 0;
*total_out = 0;
workspace->strm.next_in = data_in;
}
}
+ saved_avail_in = workspace->strm.avail_in;
workspace->strm.avail_in = 0;
ret = zlib_deflate(&workspace->strm, Z_FINISH);
zlib_deflateEnd(&workspace->strm);
if (ret != Z_STREAM_END) {
- ret = -EIEIO;
+ printk(KERN_DEBUG "%s: ret = %d, strm.avail_in = %lu, strm.avail_out = %lu, max_out = %lu, nr_pages = %d, nr_dest_pages = %lu\n", __FUNCTION__, ret, saved_avail_in, workspace->strm.avail_out, max_out, nr_pages, nr_dest_pages);
+ ret = -EIO;
goto out;
}