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()
397 uint64_t sectors_needed = partition_size / LP_SECTOR_SIZE; in MapWithLoopDeviceList() local410 uint64_t segment_size = std::min(file_sectors, sectors_needed); in MapWithLoopDeviceList()415 sectors_needed -= segment_size; in MapWithLoopDeviceList()416 if (sectors_needed == 0) { in MapWithLoopDeviceList()
703 uint64_t sectors_needed = space_needed / LP_SECTOR_SIZE; in GrowPartition() local704 DCHECK(sectors_needed * LP_SECTOR_SIZE == space_needed); in GrowPartition()712 CHECK(sectors_needed % sectors_per_block == 0); in GrowPartition()727 if (auto extent = ExtendFinalExtent(partition, free_regions, sectors_needed)) { in GrowPartition()728 sectors_needed -= extent->num_sectors(); in GrowPartition()735 if (!sectors_needed) { in GrowPartition()755 uint64_t sectors = std::min(sectors_needed, region.length()); in GrowPartition()760 sectors_needed -= sectors; in GrowPartition()762 if (sectors_needed) { in GrowPartition()813 uint64_t sectors_needed) const { in ExtendFinalExtent()[all …]
414 uint64_t sectors_needed) const;