Lines Matching refs:chunk_block

2402 					 sector_t chunk_block)  in dmz_get_bitmap()  argument
2406 (chunk_block >> DMZ_BLOCK_SHIFT_BITS); in dmz_get_bitmap()
2418 sector_t chunk_block = 0; in dmz_copy_valid_blocks() local
2421 while (chunk_block < zmd->zone_nr_blocks) { in dmz_copy_valid_blocks()
2422 from_mblk = dmz_get_bitmap(zmd, from_zone, chunk_block); in dmz_copy_valid_blocks()
2425 to_mblk = dmz_get_bitmap(zmd, to_zone, chunk_block); in dmz_copy_valid_blocks()
2437 chunk_block += zmd->zone_bits_per_mblk; in dmz_copy_valid_blocks()
2450 struct dm_zone *to_zone, sector_t chunk_block) in dmz_merge_valid_blocks() argument
2456 while (chunk_block < zmd->zone_nr_blocks) { in dmz_merge_valid_blocks()
2458 ret = dmz_first_valid_block(zmd, from_zone, &chunk_block); in dmz_merge_valid_blocks()
2463 ret = dmz_validate_blocks(zmd, to_zone, chunk_block, nr_blocks); in dmz_merge_valid_blocks()
2467 chunk_block += nr_blocks; in dmz_merge_valid_blocks()
2477 sector_t chunk_block, unsigned int nr_blocks) in dmz_validate_blocks() argument
2485 zone->id, (unsigned long long)chunk_block, in dmz_validate_blocks()
2488 WARN_ON(chunk_block + nr_blocks > zone_nr_blocks); in dmz_validate_blocks()
2492 mblk = dmz_get_bitmap(zmd, zone, chunk_block); in dmz_validate_blocks()
2497 bit = chunk_block & DMZ_BLOCK_MASK_BITS; in dmz_validate_blocks()
2508 chunk_block += nr_bits; in dmz_validate_blocks()
2558 sector_t chunk_block, unsigned int nr_blocks) in dmz_invalidate_blocks() argument
2565 zone->id, (u64)chunk_block, nr_blocks); in dmz_invalidate_blocks()
2567 WARN_ON(chunk_block + nr_blocks > zmd->zone_nr_blocks); in dmz_invalidate_blocks()
2571 mblk = dmz_get_bitmap(zmd, zone, chunk_block); in dmz_invalidate_blocks()
2576 bit = chunk_block & DMZ_BLOCK_MASK_BITS; in dmz_invalidate_blocks()
2588 chunk_block += nr_bits; in dmz_invalidate_blocks()
2606 sector_t chunk_block) in dmz_test_block() argument
2611 WARN_ON(chunk_block >= zmd->zone_nr_blocks); in dmz_test_block()
2614 mblk = dmz_get_bitmap(zmd, zone, chunk_block); in dmz_test_block()
2619 ret = test_bit(chunk_block & DMZ_BLOCK_MASK_BITS, in dmz_test_block()
2632 sector_t chunk_block, unsigned int nr_blocks, in dmz_to_next_set_block() argument
2641 WARN_ON(chunk_block + nr_blocks > zmd->zone_nr_blocks); in dmz_to_next_set_block()
2645 mblk = dmz_get_bitmap(zmd, zone, chunk_block); in dmz_to_next_set_block()
2651 bit = chunk_block & DMZ_BLOCK_MASK_BITS; in dmz_to_next_set_block()
2664 chunk_block += nr_bits; in dmz_to_next_set_block()
2675 sector_t chunk_block) in dmz_block_valid() argument
2679 valid = dmz_test_block(zmd, zone, chunk_block); in dmz_block_valid()
2684 return dmz_to_next_set_block(zmd, zone, chunk_block, in dmz_block_valid()
2685 zmd->zone_nr_blocks - chunk_block, 0); in dmz_block_valid()
2695 sector_t *chunk_block) in dmz_first_valid_block() argument
2697 sector_t start_block = *chunk_block; in dmz_first_valid_block()
2706 *chunk_block = start_block; in dmz_first_valid_block()
2746 sector_t chunk_block = 0; in dmz_get_zone_weight() local
2754 mblk = dmz_get_bitmap(zmd, zone, chunk_block); in dmz_get_zone_weight()
2762 bit = chunk_block & DMZ_BLOCK_MASK_BITS; in dmz_get_zone_weight()
2769 chunk_block += nr_bits; in dmz_get_zone_weight()