Lines Matching full:compression
263 .state = data_vio->compression.slot + VDO_MAPPING_STATE_COMPRESSED_BASE, in release_compressed_write_waiter()
287 for (client = agent->compression.next_in_batch; client != NULL; client = next) { in finish_compressed_write()
288 next = client->compression.next_in_batch; in finish_compressed_write()
309 for (client = agent->compression.next_in_batch; client != NULL; client = next) { in handle_compressed_write_error()
310 next = client->compression.next_in_batch; in handle_compressed_write_error()
327 data_vio->compression.bin = bin; in add_to_bin()
328 data_vio->compression.slot = bin->slots_used; in add_to_bin()
333 * remove_from_bin() - Get the next data_vio whose compression has not been canceled from a bin.
346 data_vio->compression.bin = NULL; in remove_from_bin()
383 * @compression: The agent's compression_state to pack in to.
390 static block_size_t __must_check pack_fragment(struct compression_state *compression, in pack_fragment() argument
395 struct compression_state *to_pack = &data_vio->compression; in pack_fragment()
398 to_pack->next_in_batch = compression->next_in_batch; in pack_fragment()
399 compression->next_in_batch = data_vio; in pack_fragment()
429 struct compression_state *compression; in write_bin() local
438 compression = &agent->compression; in write_bin()
439 compression->slot = 0; in write_bin()
440 block = compression->block; in write_bin()
441 initialize_compressed_block(block, compression->size); in write_bin()
442 offset = compression->size; in write_bin()
445 offset = pack_fragment(compression, client, offset, slot++, block); in write_bin()
503 if (bin->free_space < data_vio->compression.size) in add_data_vio_to_packer_bin()
507 bin->free_space -= data_vio->compression.size; in add_data_vio_to_packer_bin()
534 if (bin->free_space >= data_vio->compression.size) in select_bin()
547 if (data_vio->compression.size >= in select_bin()
660 * compression.lock_holder field will point to the data_vio to remove.
672 lock_holder = vdo_forget(data_vio->compression.lock_holder); in vdo_remove_lock_holder_from_packer()
673 bin = lock_holder->compression.bin; in vdo_remove_lock_holder_from_packer()
676 slot = lock_holder->compression.slot; in vdo_remove_lock_holder_from_packer()
680 bin->incoming[slot]->compression.slot = slot; in vdo_remove_lock_holder_from_packer()
683 lock_holder->compression.bin = NULL; in vdo_remove_lock_holder_from_packer()
684 lock_holder->compression.slot = 0; in vdo_remove_lock_holder_from_packer()
687 bin->free_space += lock_holder->compression.size; in vdo_remove_lock_holder_from_packer()