Home
last modified time | relevance | path

Searched refs:lock_want (Results 1 – 5 of 5) sorted by relevance

/linux-6.15/fs/bcachefs/
H A Dbtree_key_cache.c277 enum six_lock_type lock_want = __btree_lock_want(ck_path, 0); in btree_key_cache_create() local
278 if (lock_want == SIX_LOCK_read) in btree_key_cache_create()
280 btree_path_cached_set(trans, ck_path, ck, (enum btree_node_locked_type) lock_want); in btree_key_cache_create()
360 enum six_lock_type lock_want = __btree_lock_want(path, 0); in btree_path_traverse_cached_fast() local
362 int ret = btree_node_lock(trans, path, (void *) ck, 0, lock_want, _THIS_IP_); in btree_path_traverse_cached_fast()
368 six_unlock_type(&ck->c.lock, lock_want); in btree_path_traverse_cached_fast()
375 btree_path_cached_set(trans, path, ck, (enum btree_node_locked_type) lock_want); in btree_path_traverse_cached_fast()
H A Dbtree_locking.c60 enum six_lock_type lock_want; member
124 .lock_want = trans->locking_wait.lock_want, in __lock_graph_down()
189 if (trans->locking_wait.lock_want == SIX_LOCK_write) in btree_trans_abort_preference()
385 !lock_type_conflicts(lock_held, trans->locking_wait.lock_want)) in bch2_check_for_deadlock()
H A Dsix.h153 enum six_lock_type lock_want; member
H A Dsix.c224 if (w->lock_want != lock_type) in __six_lock_wakeup()
427 wait->lock_want = type; in six_lock_slowpath()
H A Dbtree_iter.c3575 prt_printf(out, " %c", lock_types[trans->locking_wait.lock_want]); in bch2_btree_trans_to_text()