Lines Matching refs:logical_sector

286 	sector_t logical_sector;  member
1215 return range1->logical_sector < range2->logical_sector + range2->n_sectors && in ranges_overlap()
1216 range1->logical_sector + range1->n_sectors > range2->logical_sector; in ranges_overlap()
1224 BUG_ON((new_range->logical_sector | new_range->n_sectors) & (unsigned)(ic->sectors_per_block - 1)); in add_new_range()
1240 if (new_range->logical_sector + new_range->n_sectors <= range->logical_sector) { in add_new_range()
1242 } else if (new_range->logical_sector >= range->logical_sector + range->n_sectors) { in add_new_range()
1625 dio->range.logical_sector += dio->range.n_sectors; in dec_in_flight()
1769 sector = dio->range.logical_sector; in integrity_metadata()
1885 dio->range.logical_sector = dm_target_offset(ti, bio->bi_iter.bi_sector); in dm_integrity_map()
1894 if (unlikely(dio->range.logical_sector + bio_sectors(bio) > ic->provided_data_sectors)) { in dm_integrity_map()
1896 dio->range.logical_sector, bio_sectors(bio), in dm_integrity_map()
1900 …if (unlikely((dio->range.logical_sector | bio_sectors(bio)) & (unsigned)(ic->sectors_per_block - 1… in dm_integrity_map()
1903 dio->range.logical_sector, bio_sectors(bio)); in dm_integrity_map()
1943 get_area_and_offset(ic, dio->range.logical_sector, &area, &offset); in dm_integrity_map()
1955 sector_t logical_sector; in __journal_read_write() local
1958 logical_sector = dio->range.logical_sector; in __journal_read_write()
1989 BUG_ON(journal_entry_get_sector(je) != logical_sector); in __journal_read_write()
2003 integrity_sector_checksum(ic, logical_sector, mem + bv.bv_offset, checksums_onstack); in __journal_read_write()
2006 logical_sector); in __journal_read_write()
2008 bio, logical_sector, 0); in __journal_read_write()
2054 integrity_sector_checksum(ic, logical_sector, (char *)js, checksums_onstack); in __journal_read_write()
2057 integrity_sector_checksum(ic, logical_sector, (char *)js, journal_entry_tag(ic, je)); in __journal_read_write()
2060 journal_entry_set_sector(je, logical_sector); in __journal_read_write()
2062 logical_sector += ic->sectors_per_block; in __journal_read_write()
2095 dio->range.logical_sector = logical_sector; in __journal_read_write()
2096 get_area_and_offset(ic, dio->range.logical_sector, &area, &offset); in __journal_read_write()
2163 add_journal_node(ic, &ic->journal_tree[pos], dio->range.logical_sector + i); in dm_integrity_map_continue()
2183 journal_read_pos = find_journal_node(ic, dio->range.logical_sector, &next_sector); in dm_integrity_map_continue()
2185 if (unlikely(dio->range.n_sectors > next_sector - dio->range.logical_sector)) in dm_integrity_map_continue()
2186 dio->range.n_sectors = next_sector - dio->range.logical_sector; in dm_integrity_map_continue()
2191 if (!test_journal_node(ic, jp, dio->range.logical_sector + i)) in dm_integrity_map_continue()
2221 unsigned new_pos = find_journal_node(ic, dio->range.logical_sector, &next_sector); in dm_integrity_map_continue()
2230 unsigned new_pos = find_journal_node(ic, dio->range.logical_sector, &next_sector); in dm_integrity_map_continue()
2232 unlikely(next_sector < dio->range.logical_sector - dio->range.n_sectors)) { in dm_integrity_map_continue()
2252 if (!block_bitmap_op(ic, ic->may_write_bitmap, dio->range.logical_sector, in dm_integrity_map_continue()
2256 bbs = sector_to_bitmap_block(ic, dio->range.logical_sector); in dm_integrity_map_continue()
2297 dio->range.logical_sector + dio->range.n_sectors > le64_to_cpu(ic->sb->recalc_sector)) in dm_integrity_map_continue()
2300 if (!block_bitmap_op(ic, ic->recalc_bitmap, dio->range.logical_sector, in dm_integrity_map_continue()
2504 io->range.logical_sector = sec; in do_journal_write()
2643 sector_t logical_sector, n_sectors; in integrity_recalc() local
2658 range.logical_sector = le64_to_cpu(ic->sb->recalc_sector); in integrity_recalc()
2659 if (unlikely(range.logical_sector >= ic->provided_data_sectors)) { in integrity_recalc()
2668 get_area_and_offset(ic, range.logical_sector, &area, &offset); in integrity_recalc()
2669 range.n_sectors = min((sector_t)RECALC_SECTORS, ic->provided_data_sectors - range.logical_sector); in integrity_recalc()
2675 logical_sector = range.logical_sector; in integrity_recalc()
2679 if (block_bitmap_op(ic, ic->recalc_bitmap, logical_sector, n_sectors, BITMAP_OP_TEST_ALL_CLEAR)) { in integrity_recalc()
2682 while (block_bitmap_op(ic, ic->recalc_bitmap, logical_sector, in integrity_recalc()
2684 logical_sector += ic->sectors_per_block; in integrity_recalc()
2688 while (block_bitmap_op(ic, ic->recalc_bitmap, logical_sector + n_sectors - ic->sectors_per_block, in integrity_recalc()
2693 get_area_and_offset(ic, logical_sector, &area, &offset); in integrity_recalc()
2696 DEBUG_print("recalculating: %llx, %llx\n", logical_sector, n_sectors); in integrity_recalc()
2726 integrity_sector_checksum(ic, logical_sector + i, ic->recalc_buffer + (i << SECTOR_SHIFT), t); in integrity_recalc()
2740 start = (range.logical_sector >> in integrity_recalc()
2743 end = ((range.logical_sector + range.n_sectors) >> in integrity_recalc()
2754 ic->sb->recalc_sector = cpu_to_le64(range.logical_sector + range.n_sectors); in integrity_recalc()
2787 if (block_bitmap_op(ic, ic->may_write_bitmap, dio->range.logical_sector, in bitmap_block_work()
2793 block_bitmap_op(ic, ic->journal, dio->range.logical_sector, in bitmap_block_work()
2809 block_bitmap_op(ic, ic->may_write_bitmap, dio->range.logical_sector, in bitmap_block_work()
2829 range.logical_sector = 0; in bitmap_flush_work()