Lines Matching refs:provided_data_sectors

73 	__le64 provided_data_sectors;	/* userspace uses this value */  member
198 sector_t provided_data_sectors; member
1894 if (unlikely(dio->range.logical_sector + bio_sectors(bio) > ic->provided_data_sectors)) { in dm_integrity_map()
1897 ic->provided_data_sectors); in dm_integrity_map()
2479 if (unlikely(sec >= ic->provided_data_sectors)) { in do_journal_write()
2493 if (unlikely(sec2 >= ic->provided_data_sectors)) in do_journal_write()
2659 if (unlikely(range.logical_sector >= ic->provided_data_sectors)) { in integrity_recalc()
2661 block_bitmap_op(ic, ic->recalc_bitmap, 0, ic->provided_data_sectors, BITMAP_OP_CLEAR); in integrity_recalc()
2669 range.n_sectors = min((sector_t)RECALC_SECTORS, ic->provided_data_sectors - range.logical_sector); in integrity_recalc()
2830 range.n_sectors = ic->provided_data_sectors; in bitmap_flush_work()
2838 limit = ic->provided_data_sectors; in bitmap_flush_work()
3136 __u64 old_provided_data_sectors = le64_to_cpu(ic->sb->provided_data_sectors); in dm_integrity_resume()
3143 if (ic->provided_data_sectors != old_provided_data_sectors) { in dm_integrity_resume()
3144 if (ic->provided_data_sectors > old_provided_data_sectors && in dm_integrity_resume()
3150 ic->provided_data_sectors - old_provided_data_sectors, BITMAP_OP_SET); in dm_integrity_resume()
3155 ic->sb->provided_data_sectors = cpu_to_le64(ic->provided_data_sectors); in dm_integrity_resume()
3170 if (!block_bitmap_op(ic, ic->journal, 0, ic->provided_data_sectors, in dm_integrity_resume()
3179 block_bitmap_op(ic, ic->recalc_bitmap, 0, ic->provided_data_sectors, BITMAP_OP_SET); in dm_integrity_resume()
3180 block_bitmap_op(ic, ic->may_write_bitmap, 0, ic->provided_data_sectors, BITMAP_OP_SET); in dm_integrity_resume()
3181 block_bitmap_op(ic, ic->journal, 0, ic->provided_data_sectors, BITMAP_OP_SET); in dm_integrity_resume()
3189 … block_bitmap_op(ic, ic->journal, 0, ic->provided_data_sectors, BITMAP_OP_TEST_ALL_CLEAR)) || in dm_integrity_resume()
3214 block_bitmap_op(ic, ic->journal, 0, ic->provided_data_sectors, BITMAP_OP_CLEAR); in dm_integrity_resume()
3215 block_bitmap_op(ic, ic->recalc_bitmap, 0, ic->provided_data_sectors, BITMAP_OP_CLEAR); in dm_integrity_resume()
3216 block_bitmap_op(ic, ic->may_write_bitmap, 0, ic->provided_data_sectors, BITMAP_OP_CLEAR); in dm_integrity_resume()
3218 le64_to_cpu(ic->sb->recalc_sector) < ic->provided_data_sectors) { in dm_integrity_resume()
3220 ic->provided_data_sectors - le64_to_cpu(ic->sb->recalc_sector), BITMAP_OP_SET); in dm_integrity_resume()
3222 ic->provided_data_sectors - le64_to_cpu(ic->sb->recalc_sector), BITMAP_OP_SET); in dm_integrity_resume()
3224 ic->provided_data_sectors - le64_to_cpu(ic->sb->recalc_sector), BITMAP_OP_SET); in dm_integrity_resume()
3234 DEBUG_print("recalc pos: %llx / %llx\n", recalc_pos, ic->provided_data_sectors); in dm_integrity_resume()
3235 if (recalc_pos < ic->provided_data_sectors) { in dm_integrity_resume()
3237 } else if (recalc_pos > ic->provided_data_sectors) { in dm_integrity_resume()
3238 ic->sb->recalc_sector = cpu_to_le64(ic->provided_data_sectors); in dm_integrity_resume()
3265 ic->provided_data_sectors); in dm_integrity_status()
3427 get_area_and_offset(ic, ic->provided_data_sectors - 1, &last_area, &last_offset); in calculate_device_limits()
3432 __u64 meta_size = (ic->provided_data_sectors >> ic->sb->log2_sectors_per_block) * ic->tag_size; in calculate_device_limits()
3450 ic->provided_data_sectors = 0; in get_provided_data_sectors()
3452 __u64 prev_data_sectors = ic->provided_data_sectors; in get_provided_data_sectors()
3454 ic->provided_data_sectors |= (sector_t)1 << test_bit; in get_provided_data_sectors()
3456 ic->provided_data_sectors = prev_data_sectors; in get_provided_data_sectors()
3459 ic->provided_data_sectors = ic->data_device_sectors; in get_provided_data_sectors()
3460 ic->provided_data_sectors &= ~(sector_t)(ic->sectors_per_block - 1); in get_provided_data_sectors()
3497 if (!ic->provided_data_sectors) in initialize_superblock()
3503 if (!ic->provided_data_sectors) in initialize_superblock()
3527 ic->sb->provided_data_sectors = cpu_to_le64(ic->provided_data_sectors); in initialize_superblock()
4334 if (!ic->provided_data_sectors) { in dm_integrity_ctr()
4361 …while (bits_in_journal < (ic->provided_data_sectors + ((sector_t)1 << log2_sectors_per_bitmap_bit)… in dm_integrity_ctr()
4369 n_bitmap_bits = ((ic->provided_data_sectors >> ic->sb->log2_sectors_per_block) in dm_integrity_ctr()
4376 if (ti->len > ic->provided_data_sectors) { in dm_integrity_ctr()
4401 …print(" provided_data_sectors 0x%llx (%llu)\n", ic->provided_data_sectors, ic->provided_data_secto… in dm_integrity_ctr()
4443 le64_to_cpu(ic->sb->recalc_sector) < ic->provided_data_sectors && in dm_integrity_ctr()