bufferlist *l = &wi.bl;
uint64_t final_length = wi.blob_length;
uint64_t csum_length = wi.blob_length;
- unsigned csum_order = block_size_order;
if (wi.compressed) {
final_length = wi.compressed_bl.length();
csum_length = final_length;
- csum_order = ctz(csum_length);
l = &wi.compressed_bl;
dblob.set_compressed(wi.blob_length, wi.compressed_len);
} else if (wi.new_blob) {
// initialize newly created blob only
assert(dblob.is_mutable());
+ unsigned csum_order;
if (l->length() != wi.blob_length) {
// hrm, maybe we could do better here, but let's not bother.
dout(20) << __func__ << " forcing csum_order to block_size_order "