Lines Matching refs:tree_lock
1378 const struct tree_lock *lock) in get_tree_page()
1698 struct tree_lock *lock_holder; in release_page_lock()
1699 struct tree_lock *lock = &data_vio->tree_lock; in release_page_lock()
1715 data_vio->tree_lock.height = 0; in finish_lookup()
1744 if (data_vio->tree_lock.locked) { in abort_lookup()
1746 vdo_waitq_notify_all_waiters(&data_vio->tree_lock.waiters, in abort_lookup()
1782 struct tree_lock *lock = &data_vio->tree_lock; in continue_with_loaded_page()
1818 data_vio->tree_lock.height--; in continue_load_for_waiter()
1832 struct tree_lock *tree_lock = &data_vio->tree_lock; in finish_block_map_page_load() local
1834 tree_lock->height--; in finish_block_map_page_load()
1835 pbn = tree_lock->tree_slots[tree_lock->height].block_map_slot.pbn; in finish_block_map_page_load()
1836 tree_page = get_tree_page(zone, tree_lock); in finish_block_map_page_load()
1846 vdo_waitq_notify_all_waiters(&tree_lock->waiters, continue_load_for_waiter, page); in finish_block_map_page_load()
1876 struct tree_lock *lock = &data_vio->tree_lock; in load_page()
1891 struct tree_lock *lock_holder; in attempt_page_lock()
1892 struct tree_lock *lock = &data_vio->tree_lock; in attempt_page_lock()
1912 data_vio->tree_lock.locked = true; in attempt_page_lock()
1932 if (data_vio->tree_lock.locked) { in load_block_map_page()
1952 struct tree_lock *tree_lock = &data_vio->tree_lock; in continue_allocation_for_waiter() local
1955 tree_lock->height--; in continue_allocation_for_waiter()
1956 data_vio->tree_lock.tree_slots[tree_lock->height].block_map_slot.pbn = pbn; in continue_allocation_for_waiter()
1958 if (tree_lock->height == 0) { in continue_allocation_for_waiter()
2075 struct tree_lock *tree_lock = &data_vio->tree_lock; in finish_block_map_allocation() local
2076 height_t height = tree_lock->height; in finish_block_map_allocation()
2080 tree_page = get_tree_page(zone, tree_lock); in finish_block_map_allocation()
2081 pbn = tree_lock->tree_slots[height - 1].block_map_slot.pbn; in finish_block_map_allocation()
2107 tree_lock->height--; in finish_block_map_allocation()
2110 tree_page = get_tree_page(zone, tree_lock); in finish_block_map_allocation()
2118 vdo_waitq_notify_all_waiters(&tree_lock->waiters, in finish_block_map_allocation()
2120 if (tree_lock->height == 0) { in finish_block_map_allocation()
2167 struct tree_lock *lock = &data_vio->tree_lock; in allocate_block()
2207 if (!data_vio->tree_lock.locked) in allocate_block_map_page()
2226 struct tree_lock *lock = &data_vio->tree_lock; in vdo_find_block_map_slot()
2951 struct tree_lock *tree_lock = &data_vio->tree_lock; in vdo_compute_logical_zone() local
2954 tree_lock->tree_slots[0].page_index = page_number; in vdo_compute_logical_zone()
2955 tree_lock->root_index = page_number % map->root_count; in vdo_compute_logical_zone()
2956 return (tree_lock->root_index % map->zone_count); in vdo_compute_logical_zone()
3090 data_vio->tree_lock.tree_slots[0].block_map_slot.pbn, in fetch_mapping_page()
3184 tree_slot = &data_vio->tree_lock.tree_slots[0]; in get_mapping_from_fetched_page()
3200 struct tree_lock *tree_lock = &data_vio->tree_lock; in vdo_update_block_map_page() local
3203 page->entries[tree_lock->tree_slots[tree_lock->height].block_map_slot.slot] = in vdo_update_block_map_page()
3266 if (data_vio->tree_lock.tree_slots[0].block_map_slot.pbn == VDO_ZERO_BLOCK) { in vdo_get_mapped_block()