Lines Matching defs:allocation

454 	 * writing and has received an allocation, service the read request immediately by copying
457 * allocation, prevent it from blocking in the packer and wait on it. This is necessary in
498 memset(&data_vio->allocation, 0, sizeof(data_vio->allocation));
796 "data_vio data allocation failure");
802 "data_vio compressed block allocation failure");
809 "data_vio scratch allocation failure");
814 "data_vio data bio allocation failure");
1278 VDO_ASSERT_LOG_ONLY(data_vio->allocation.lock == NULL,
1279 "complete data_vio has no allocation lock");
1361 (unsigned long long) data_vio->allocation.pbn,
1397 * @callback: The callback which will attempt an allocation in the current zone and continue if it
1405 struct allocation *allocation = &data_vio->allocation;
1407 VDO_ASSERT_LOG_ONLY((allocation->pbn == VDO_ZERO_BLOCK),
1408 "data_vio does not have an allocation");
1409 allocation->write_lock_type = write_lock_type;
1410 allocation->zone = vdo_get_next_allocation_zone(data_vio->logical.zone);
1411 allocation->first_allocation_zone = allocation->zone->zone_number;
1419 * @reset: If true, the allocation will be reset (i.e. any allocated pbn will be forgotten).
1425 struct allocation *allocation = &data_vio->allocation;
1426 physical_block_number_t locked_pbn = allocation->pbn;
1430 if (reset || vdo_pbn_lock_has_provisional_reference(allocation->lock))
1431 allocation->pbn = VDO_ZERO_BLOCK;
1433 vdo_release_physical_zone_pbn_lock(allocation->zone, locked_pbn,
1434 vdo_forget(allocation->lock));
1670 * block. Downgrade the allocation lock to a read lock so it can be used later by
1675 vdo_downgrade_pbn_write_lock(data_vio->allocation.lock, false);
1803 "data_vio to compress has an allocation");
1855 /** prepare_for_dedupe() - Prepare for the dedupe path after attempting to get an allocation. */
1881 update_metadata_for_data_vio_write(data_vio, data_vio->allocation.lock);
1912 data_vio->allocation.pbn);
1948 * allocate_block() - Attempt to allocate a block in the current allocation zone.
1964 .zone = data_vio->allocation.zone,
1965 .pbn = data_vio->allocation.pbn,
1988 /* We failed to get an allocation, but we can try to dedupe. */
2037 * We need an allocation if this is neither a full-block discard nor a
2048 * We don't need to write any data, so skip allocation and just update the block map and