Home
last modified time | relevance | path

Searched refs:SIX_LOCK_read (Results 1 – 11 of 11) sorted by relevance

/linux-6.12.1/fs/bcachefs/
Dsix.c33 #define SIX_LOCK_WAITING_read (1U << (28 + SIX_LOCK_read))
52 [SIX_LOCK_read] = {
68 .unlock_wakeup = SIX_LOCK_read,
154 if (type == SIX_LOCK_read && lock->readers) { in __do_six_trylock()
188 ret = -1 - SIX_LOCK_read; in __do_six_trylock()
227 if (saw_one && lock_type != SIX_LOCK_read) in __six_lock_wakeup()
303 six_acquire(&lock->dep_map, 1, type == SIX_LOCK_read, ip); in six_trylock_ip()
506 six_lock_wakeup(lock, atomic_read(&lock->state), SIX_LOCK_read); in six_lock_slowpath()
553 six_acquire(&lock->dep_map, 0, type == SIX_LOCK_read, ip); in six_lock_ip_waiter()
575 if (type == SIX_LOCK_read && in do_six_unlock_type()
[all …]
Dbtree_locking.h35 BTREE_NODE_READ_LOCKED = SIX_LOCK_read,
71 BUILD_BUG_ON(SIX_LOCK_read != 0); in mark_btree_node_locked_noreset()
100 : SIX_LOCK_read; in __btree_lock_want()
Dbtree_locking.c408 int readers = bch2_btree_node_lock_counts(trans, NULL, b, b->level).n[SIX_LOCK_read]; in __bch2_btree_node_lock_write()
542 six_lock_readers_add(&b->c.lock, -count.n[SIX_LOCK_read]); in bch2_btree_node_upgrade()
544 six_lock_readers_add(&b->c.lock, count.n[SIX_LOCK_read]); in bch2_btree_node_upgrade()
Dsix.h131 SIX_LOCK_read, enumerator
Dbtree_cache.c992 if (lock_type == SIX_LOCK_read) in bch2_btree_node_fill()
1261 level, SIX_LOCK_read, true); in bch2_btree_node_get_noiter()
1275 ret = btree_node_lock_nopath(trans, &b->c, SIX_LOCK_read, _THIS_IP_); in bch2_btree_node_get_noiter()
1336 level, SIX_LOCK_read, false); in bch2_btree_node_prefetch()
Dbtree_key_cache.c269 if (lock_want == SIX_LOCK_read) in btree_key_cache_create()
495 btree_node_lock_nopath_nofail(trans, &ck->c, SIX_LOCK_read); in bch2_btree_key_cache_journal_flush()
Dtrace.h583 __entry->self_read_count = c.n[SIX_LOCK_read];
590 __entry->read_count = c.n[SIX_LOCK_read];
653 __entry->self_read_count = c.n[SIX_LOCK_read];
656 __entry->read_count = c.n[SIX_LOCK_read];
Dbtree_trans_commit.c236 btree_node_lock_nopath_nofail(trans, &b->c, SIX_LOCK_read); in __btree_node_flush()
252 btree_node_write_if_need(c, b, SIX_LOCK_read); in __btree_node_flush()
Dbtree_io.c1836 btree_node_lock_nopath_nofail(trans, &b->c, SIX_LOCK_read); in btree_node_write_done()
2282 (lock_type_held == SIX_LOCK_read && in bch2_btree_node_write()
2293 if (lock_type_held == SIX_LOCK_read) in bch2_btree_node_write()
Dbtree_update_interior.c701 btree_node_lock_nopath_nofail(trans, &b->c, SIX_LOCK_read); in btree_update_nodes_written()
832 btree_node_lock_nopath_nofail(trans, &b->c, SIX_LOCK_read); in btree_update_nodes_written()
833 btree_node_write_if_need(c, b, SIX_LOCK_read); in btree_update_nodes_written()
Dbtree_gc.c549 btree_node_lock_nopath_nofail(trans, &b->c, SIX_LOCK_read); in bch2_check_topology()