Searched refs:sectors_needed (Results 1 – 4 of 4) sorted by relevance
133 uint64_t sectors_needed = partition_size / LP_SECTOR_SIZE; in FillPartitionExtents() local145 std::min(static_cast<uint64_t>(extent.fe_length / LP_SECTOR_SIZE), sectors_needed); in FillPartitionExtents()146 if (!num_sectors || !sectors_needed) { in FillPartitionExtents()159 sectors_needed -= num_sectors; in FillPartitionExtents()
383 uint64_t sectors_needed = partition_size / LP_SECTOR_SIZE; in MapWithLoopDeviceList() local396 uint64_t segment_size = std::min(file_sectors, sectors_needed); in MapWithLoopDeviceList()401 sectors_needed -= segment_size; in MapWithLoopDeviceList()402 if (sectors_needed == 0) { in MapWithLoopDeviceList()
708 uint64_t sectors_needed = space_needed / LP_SECTOR_SIZE; in GrowPartition() local709 DCHECK(sectors_needed * LP_SECTOR_SIZE == space_needed); in GrowPartition()717 CHECK(sectors_needed % sectors_per_block == 0); in GrowPartition()732 if (auto extent = ExtendFinalExtent(partition, free_regions, sectors_needed)) { in GrowPartition()733 sectors_needed -= extent->num_sectors(); in GrowPartition()740 if (!sectors_needed) { in GrowPartition()760 uint64_t sectors = std::min(sectors_needed, region.length()); in GrowPartition()765 sectors_needed -= sectors; in GrowPartition()767 if (sectors_needed) { in GrowPartition()818 uint64_t sectors_needed) const { in ExtendFinalExtent()[all …]
414 uint64_t sectors_needed) const;