Lines Matching refs:chunk_block
2405 sector_t chunk_block) in dmz_get_bitmap() argument
2409 (chunk_block >> DMZ_BLOCK_SHIFT_BITS); in dmz_get_bitmap()
2421 sector_t chunk_block = 0; in dmz_copy_valid_blocks() local
2424 while (chunk_block < zmd->zone_nr_blocks) { in dmz_copy_valid_blocks()
2425 from_mblk = dmz_get_bitmap(zmd, from_zone, chunk_block); in dmz_copy_valid_blocks()
2428 to_mblk = dmz_get_bitmap(zmd, to_zone, chunk_block); in dmz_copy_valid_blocks()
2440 chunk_block += zmd->zone_bits_per_mblk; in dmz_copy_valid_blocks()
2453 struct dm_zone *to_zone, sector_t chunk_block) in dmz_merge_valid_blocks() argument
2459 while (chunk_block < zmd->zone_nr_blocks) { in dmz_merge_valid_blocks()
2461 ret = dmz_first_valid_block(zmd, from_zone, &chunk_block); in dmz_merge_valid_blocks()
2466 ret = dmz_validate_blocks(zmd, to_zone, chunk_block, nr_blocks); in dmz_merge_valid_blocks()
2470 chunk_block += nr_blocks; in dmz_merge_valid_blocks()
2480 sector_t chunk_block, unsigned int nr_blocks) in dmz_validate_blocks() argument
2488 zone->id, (unsigned long long)chunk_block, in dmz_validate_blocks()
2491 WARN_ON(chunk_block + nr_blocks > zone_nr_blocks); in dmz_validate_blocks()
2495 mblk = dmz_get_bitmap(zmd, zone, chunk_block); in dmz_validate_blocks()
2500 bit = chunk_block & DMZ_BLOCK_MASK_BITS; in dmz_validate_blocks()
2511 chunk_block += nr_bits; in dmz_validate_blocks()
2561 sector_t chunk_block, unsigned int nr_blocks) in dmz_invalidate_blocks() argument
2568 zone->id, (u64)chunk_block, nr_blocks); in dmz_invalidate_blocks()
2570 WARN_ON(chunk_block + nr_blocks > zmd->zone_nr_blocks); in dmz_invalidate_blocks()
2574 mblk = dmz_get_bitmap(zmd, zone, chunk_block); in dmz_invalidate_blocks()
2579 bit = chunk_block & DMZ_BLOCK_MASK_BITS; in dmz_invalidate_blocks()
2591 chunk_block += nr_bits; in dmz_invalidate_blocks()
2609 sector_t chunk_block) in dmz_test_block() argument
2614 WARN_ON(chunk_block >= zmd->zone_nr_blocks); in dmz_test_block()
2617 mblk = dmz_get_bitmap(zmd, zone, chunk_block); in dmz_test_block()
2622 ret = test_bit(chunk_block & DMZ_BLOCK_MASK_BITS, in dmz_test_block()
2635 sector_t chunk_block, unsigned int nr_blocks, in dmz_to_next_set_block() argument
2644 WARN_ON(chunk_block + nr_blocks > zmd->zone_nr_blocks); in dmz_to_next_set_block()
2648 mblk = dmz_get_bitmap(zmd, zone, chunk_block); in dmz_to_next_set_block()
2654 bit = chunk_block & DMZ_BLOCK_MASK_BITS; in dmz_to_next_set_block()
2667 chunk_block += nr_bits; in dmz_to_next_set_block()
2678 sector_t chunk_block) in dmz_block_valid() argument
2682 valid = dmz_test_block(zmd, zone, chunk_block); in dmz_block_valid()
2687 return dmz_to_next_set_block(zmd, zone, chunk_block, in dmz_block_valid()
2688 zmd->zone_nr_blocks - chunk_block, 0); in dmz_block_valid()
2698 sector_t *chunk_block) in dmz_first_valid_block() argument
2700 sector_t start_block = *chunk_block; in dmz_first_valid_block()
2709 *chunk_block = start_block; in dmz_first_valid_block()
2749 sector_t chunk_block = 0; in dmz_get_zone_weight() local
2757 mblk = dmz_get_bitmap(zmd, zone, chunk_block); in dmz_get_zone_weight()
2765 bit = chunk_block & DMZ_BLOCK_MASK_BITS; in dmz_get_zone_weight()
2772 chunk_block += nr_bits; in dmz_get_zone_weight()