Searched refs:SIX_LOCK_write (Results 1 – 7 of 7) sorted by relevance
/linux-6.12.1/fs/bcachefs/ |
D | six.c | 34 #define SIX_LOCK_WAITING_write (1U << (28 + SIX_LOCK_write)) 56 .unlock_wakeup = SIX_LOCK_write, 64 [SIX_LOCK_write] = { 123 EBUG_ON(type == SIX_LOCK_write && lock->owner != task); in __do_six_trylock() 124 EBUG_ON(type == SIX_LOCK_write && in __do_six_trylock() 169 ret = -1 - SIX_LOCK_write; in __do_six_trylock() 171 } else if (type == SIX_LOCK_write && lock->readers) { in __do_six_trylock() 194 if (!ret || (type == SIX_LOCK_write && !try)) { in __do_six_trylock() 206 EBUG_ON(type == SIX_LOCK_write && try && ret <= 0 && in __do_six_trylock() 268 if (lock_type == SIX_LOCK_write && (state & SIX_LOCK_HELD_read)) in six_lock_wakeup() [all …]
|
D | btree_locking.h | 37 BTREE_NODE_WRITE_LOCKED = SIX_LOCK_write, 174 EBUG_ON(btree_node_locked_type(path, b->c.level) != SIX_LOCK_write); in bch2_btree_node_unlock_write_inlined()
|
D | six.h | 133 SIX_LOCK_write, enumerator
|
D | btree_locking.c | 175 if (trans->locking_wait.lock_want == SIX_LOCK_write) in btree_trans_abort_preference() 418 ret = __btree_node_lock_nopath(trans, b, SIX_LOCK_write, in __bch2_btree_node_lock_write()
|
D | btree_io.c | 486 EBUG_ON(!six_lock_counts(&b->c.lock).n[SIX_LOCK_write]); in bch2_btree_init_next() 493 bch2_btree_node_write(c, b, SIX_LOCK_write, in bch2_btree_init_next() 2297 if (lock_type_held == SIX_LOCK_write && in bch2_btree_node_write()
|
D | btree_update_interior.c | 396 btree_node_lock_nopath_nofail(trans, &b->c, SIX_LOCK_write); in bch2_btree_node_alloc() 518 btree_node_lock_nopath_nofail(trans, &b->c, SIX_LOCK_write); in bch2_btree_reserve_put()
|
D | btree_cache.c | 1366 btree_node_lock_nopath_nofail(trans, &b->c, SIX_LOCK_write); in bch2_btree_node_evict()
|