Lines Matching refs:tree_lock

1376 					      const struct tree_lock *lock)  in get_tree_page()
1696 struct tree_lock *lock_holder; in release_page_lock()
1697 struct tree_lock *lock = &data_vio->tree_lock; in release_page_lock()
1713 data_vio->tree_lock.height = 0; in finish_lookup()
1742 if (data_vio->tree_lock.locked) { in abort_lookup()
1744 vdo_waitq_notify_all_waiters(&data_vio->tree_lock.waiters, in abort_lookup()
1780 struct tree_lock *lock = &data_vio->tree_lock; in continue_with_loaded_page()
1816 data_vio->tree_lock.height--; in continue_load_for_waiter()
1830 struct tree_lock *tree_lock = &data_vio->tree_lock; in finish_block_map_page_load() local
1832 tree_lock->height--; in finish_block_map_page_load()
1833 pbn = tree_lock->tree_slots[tree_lock->height].block_map_slot.pbn; in finish_block_map_page_load()
1834 tree_page = get_tree_page(zone, tree_lock); in finish_block_map_page_load()
1844 vdo_waitq_notify_all_waiters(&tree_lock->waiters, continue_load_for_waiter, page); in finish_block_map_page_load()
1873 struct tree_lock *lock = &data_vio->tree_lock; in load_page()
1888 struct tree_lock *lock_holder; in attempt_page_lock()
1889 struct tree_lock *lock = &data_vio->tree_lock; in attempt_page_lock()
1909 data_vio->tree_lock.locked = true; in attempt_page_lock()
1929 if (data_vio->tree_lock.locked) { in load_block_map_page()
1949 struct tree_lock *tree_lock = &data_vio->tree_lock; in continue_allocation_for_waiter() local
1952 tree_lock->height--; in continue_allocation_for_waiter()
1953 data_vio->tree_lock.tree_slots[tree_lock->height].block_map_slot.pbn = pbn; in continue_allocation_for_waiter()
1955 if (tree_lock->height == 0) { in continue_allocation_for_waiter()
2072 struct tree_lock *tree_lock = &data_vio->tree_lock; in finish_block_map_allocation() local
2073 height_t height = tree_lock->height; in finish_block_map_allocation()
2077 tree_page = get_tree_page(zone, tree_lock); in finish_block_map_allocation()
2078 pbn = tree_lock->tree_slots[height - 1].block_map_slot.pbn; in finish_block_map_allocation()
2104 tree_lock->height--; in finish_block_map_allocation()
2107 tree_page = get_tree_page(zone, tree_lock); in finish_block_map_allocation()
2115 vdo_waitq_notify_all_waiters(&tree_lock->waiters, in finish_block_map_allocation()
2117 if (tree_lock->height == 0) { in finish_block_map_allocation()
2164 struct tree_lock *lock = &data_vio->tree_lock; in allocate_block()
2204 if (!data_vio->tree_lock.locked) in allocate_block_map_page()
2223 struct tree_lock *lock = &data_vio->tree_lock; in vdo_find_block_map_slot()
2948 struct tree_lock *tree_lock = &data_vio->tree_lock; in vdo_compute_logical_zone() local
2951 tree_lock->tree_slots[0].page_index = page_number; in vdo_compute_logical_zone()
2952 tree_lock->root_index = page_number % map->root_count; in vdo_compute_logical_zone()
2953 return (tree_lock->root_index % map->zone_count); in vdo_compute_logical_zone()
3087 data_vio->tree_lock.tree_slots[0].block_map_slot.pbn, in fetch_mapping_page()
3181 tree_slot = &data_vio->tree_lock.tree_slots[0]; in get_mapping_from_fetched_page()
3197 struct tree_lock *tree_lock = &data_vio->tree_lock; in vdo_update_block_map_page() local
3200 page->entries[tree_lock->tree_slots[tree_lock->height].block_map_slot.slot] = in vdo_update_block_map_page()
3263 if (data_vio->tree_lock.tree_slots[0].block_map_slot.pbn == VDO_ZERO_BLOCK) { in vdo_get_mapped_block()