Lines Matching refs:old_chunk
717 if (chunk >= e->old_chunk && in dm_lookup_exception()
718 chunk <= e->old_chunk + dm_consecutive_chunk_count(e)) in dm_lookup_exception()
767 l = &eh->table[exception_hash(eh, new_e->old_chunk)]; in dm_insert_exception()
776 if (new_e->old_chunk == (e->old_chunk + in dm_insert_exception()
786 if (new_e->old_chunk == (e->old_chunk - 1) && in dm_insert_exception()
789 e->old_chunk--; in dm_insert_exception()
795 if (new_e->old_chunk < e->old_chunk) in dm_insert_exception()
806 } else if (new_e->old_chunk < e->old_chunk) { in dm_insert_exception()
829 e->old_chunk = old; in dm_add_exception()
938 chunk_t old_chunk) in __remove_single_exception_chunk() argument
942 e = dm_lookup_exception(&s->complete, old_chunk); in __remove_single_exception_chunk()
945 (unsigned long long)old_chunk); in __remove_single_exception_chunk()
966 if (old_chunk == e->old_chunk) { in __remove_single_exception_chunk()
967 e->old_chunk++; in __remove_single_exception_chunk()
969 } else if (old_chunk != e->old_chunk + in __remove_single_exception_chunk()
972 (unsigned long long)old_chunk, in __remove_single_exception_chunk()
973 (unsigned long long)e->old_chunk, in __remove_single_exception_chunk()
975 e->old_chunk + dm_consecutive_chunk_count(e)); in __remove_single_exception_chunk()
990 chunk_t old_chunk = s->first_merging_chunk + s->num_merging_chunks - 1; in remove_single_exception_chunk() local
999 r = __remove_single_exception_chunk(s, old_chunk); in remove_single_exception_chunk()
1002 } while (old_chunk-- > s->first_merging_chunk); in remove_single_exception_chunk()
1043 chunk_t old_chunk, new_chunk; in snapshot_merge_next_chunks() local
1060 linear_chunks = s->store->type->prepare_merge(s->store, &old_chunk, in snapshot_merge_next_chunks()
1073 old_chunk = old_chunk + 1 - linear_chunks; in snapshot_merge_next_chunks()
1083 dest.sector = chunk_to_sector(s->store, old_chunk); in snapshot_merge_next_chunks()
1109 s->first_merging_chunk = old_chunk; in snapshot_merge_next_chunks()
1115 __check_for_conflicting_io(s, old_chunk + i); in snapshot_merge_next_chunks()
1652 dm_exception_table_lock_init(s, pe->e.old_chunk, &lock); in pending_complete()
1694 if (__chunk_is_tracked(s, pe->e.old_chunk)) { in pending_complete()
1696 __check_for_conflicting_io(s, pe->e.old_chunk); in pending_complete()
1802 src.sector = chunk_to_sector(s->store, pe->e.old_chunk); in start_copy()
1861 pe->e.old_chunk = chunk; in __insert_pending_exception()
1911 (chunk - e->old_chunk)) + in remap_exception()