• Home
  • Raw
  • Download

Lines Matching refs:zone_nr_blocks

155 	sector_t		zone_nr_blocks;  member
245 return zmd->zone_nr_blocks; in dmz_zone_nr_blocks()
1060 nr_meta_zones = (le32_to_cpu(sb->nr_meta_blocks) + zmd->zone_nr_blocks - 1) in dmz_check_sb()
1114 unsigned int zone_nr_blocks = zmd->zone_nr_blocks; in dmz_lookup_secondary_sb() local
1128 zmd->sb[1].block = zmd->sb[0].block + zone_nr_blocks; in dmz_lookup_secondary_sb()
1136 zmd->sb[1].block += zone_nr_blocks; in dmz_lookup_secondary_sb()
1477 zmd->zone_nr_blocks = dmz_sect2blk(zmd->zone_nr_sectors); in dmz_init_zones()
1478 zmd->zone_nr_blocks_shift = ilog2(zmd->zone_nr_blocks); in dmz_init_zones()
1479 zmd->zone_bitmap_size = zmd->zone_nr_blocks >> 3; in dmz_init_zones()
1482 zmd->zone_bits_per_mblk = min_t(sector_t, zmd->zone_nr_blocks, in dmz_init_zones()
2421 while (chunk_block < zmd->zone_nr_blocks) { in dmz_copy_valid_blocks()
2456 while (chunk_block < zmd->zone_nr_blocks) { in dmz_merge_valid_blocks()
2480 unsigned int zone_nr_blocks = zmd->zone_nr_blocks; in dmz_validate_blocks() local
2488 WARN_ON(chunk_block + nr_blocks > zone_nr_blocks); in dmz_validate_blocks()
2511 if (likely(zone->weight + n <= zone_nr_blocks)) in dmz_validate_blocks()
2516 zone_nr_blocks - n); in dmz_validate_blocks()
2517 zone->weight = zone_nr_blocks; in dmz_validate_blocks()
2567 WARN_ON(chunk_block + nr_blocks > zmd->zone_nr_blocks); in dmz_invalidate_blocks()
2611 WARN_ON(chunk_block >= zmd->zone_nr_blocks); in dmz_test_block()
2641 WARN_ON(chunk_block + nr_blocks > zmd->zone_nr_blocks); in dmz_to_next_set_block()
2685 zmd->zone_nr_blocks - chunk_block, 0); in dmz_block_valid()
2701 zmd->zone_nr_blocks - start_block, 1); in dmz_first_valid_block()
2709 zmd->zone_nr_blocks - start_block, 0); in dmz_first_valid_block()
2748 unsigned int nr_blocks = zmd->zone_nr_blocks; in dmz_get_zone_weight()
3041 zmd->zone_nr_blocks - zone->wp_block); in dmz_resume_metadata()