Lines Matching refs:ie_disk
281 struct disk_index_entry ie_disk; in sm_ll_lookup_bitmap() local
285 r = ll->load_ie(ll, index, &ie_disk); in sm_ll_lookup_bitmap()
289 r = dm_tm_read_lock(ll->tm, le64_to_cpu(ie_disk.blocknr), in sm_ll_lookup_bitmap()
333 struct disk_index_entry ie_disk; in sm_ll_find_free_block() local
348 r = ll->load_ie(ll, i, &ie_disk); in sm_ll_find_free_block()
352 if (le32_to_cpu(ie_disk.nr_free) == 0) in sm_ll_find_free_block()
355 r = dm_tm_read_lock(ll->tm, le64_to_cpu(ie_disk.blocknr), in sm_ll_find_free_block()
363 max_t(unsigned, begin, le32_to_cpu(ie_disk.none_free_before)), in sm_ll_find_free_block()
418 struct disk_index_entry ie_disk; in sm_ll_mutate() local
423 r = ll->load_ie(ll, index, &ie_disk); in sm_ll_mutate()
427 r = dm_tm_shadow_block(ll->tm, le64_to_cpu(ie_disk.blocknr), in sm_ll_mutate()
433 ie_disk.blocknr = cpu_to_le64(dm_block_location(nb)); in sm_ll_mutate()
483 le32_add_cpu(&ie_disk.nr_free, -1); in sm_ll_mutate()
484 if (le32_to_cpu(ie_disk.none_free_before) == bit) in sm_ll_mutate()
485 ie_disk.none_free_before = cpu_to_le32(bit + 1); in sm_ll_mutate()
490 le32_add_cpu(&ie_disk.nr_free, 1); in sm_ll_mutate()
491 ie_disk.none_free_before = cpu_to_le32(min(le32_to_cpu(ie_disk.none_free_before), bit)); in sm_ll_mutate()
495 return ll->save_ie(ll, index, &ie_disk); in sm_ll_mutate()