Home
last modified time | relevance | path

Searched refs:bucket_lock (Results 1 – 13 of 13) sorted by relevance

/linux-6.12.1/drivers/md/bcache/
Dalloc.c102 mutex_lock(&c->bucket_lock); in bch_rescale_priorities()
115 mutex_unlock(&c->bucket_lock); in bch_rescale_priorities()
139 lockdep_assert_held(&ca->set->bucket_lock); in __bch_invalidate_one_bucket()
317 mutex_unlock(&(ca)->set->bucket_lock); \
325 mutex_lock(&(ca)->set->bucket_lock); \
349 mutex_lock(&ca->set->bucket_lock); in bch_allocator_thread()
364 mutex_unlock(&ca->set->bucket_lock); in bch_allocator_thread()
368 mutex_lock(&ca->set->bucket_lock); in bch_allocator_thread()
444 mutex_unlock(&ca->set->bucket_lock); in bch_bucket_alloc()
446 mutex_lock(&ca->set->bucket_lock); in bch_bucket_alloc()
[all …]
Dbtree.c613 lockdep_assert_held(&b->c->bucket_lock); in mca_reap()
684 mutex_lock(&c->bucket_lock); in bch_mca_scan()
685 else if (!mutex_trylock(&c->bucket_lock)) in bch_mca_scan()
730 mutex_unlock(&c->bucket_lock); in bch_mca_scan()
758 mutex_lock(&c->bucket_lock); in bch_btree_cache_free()
793 mutex_unlock(&c->bucket_lock); in bch_btree_cache_free()
931 lockdep_assert_held(&c->bucket_lock); in mca_alloc()
1022 mutex_lock(&c->bucket_lock); in bch_btree_node_get()
1024 mutex_unlock(&c->bucket_lock); in bch_btree_node_get()
1068 mutex_lock(&parent->c->bucket_lock); in btree_node_prefetch()
[all …]
Dextents.c180 if (mutex_trylock(&b->c->bucket_lock)) { in btree_ptr_bad_expensive()
192 mutex_unlock(&b->c->bucket_lock); in btree_ptr_bad_expensive()
197 mutex_unlock(&b->c->bucket_lock); in btree_ptr_bad_expensive()
528 if (mutex_trylock(&b->c->bucket_lock)) { in bch_extent_bad_expensive()
538 mutex_unlock(&b->c->bucket_lock); in bch_extent_bad_expensive()
543 mutex_unlock(&b->c->bucket_lock); in bch_extent_bad_expensive()
Dsysfs.c689 mutex_lock(&c->bucket_lock); in bch_cache_size()
693 mutex_unlock(&c->bucket_lock); in bch_cache_size()
702 mutex_lock(&c->bucket_lock); in bch_cache_max_chain()
710 mutex_unlock(&c->bucket_lock); in bch_cache_max_chain()
1071 mutex_lock(&ca->set->bucket_lock); in SHOW()
1085 mutex_unlock(&ca->set->bucket_lock); in SHOW()
1165 mutex_lock(&ca->set->bucket_lock); in STORE()
1167 mutex_unlock(&ca->set->bucket_lock); in STORE()
Dmovinggc.c221 mutex_lock(&c->bucket_lock); in bch_moving_gc()
262 mutex_unlock(&c->bucket_lock); in bch_moving_gc()
Dsuper.c635 lockdep_assert_held(&ca->set->bucket_lock); in bch_prio_write()
662 mutex_unlock(&ca->set->bucket_lock); in bch_prio_write()
664 mutex_lock(&ca->set->bucket_lock); in bch_prio_write()
670 mutex_unlock(&ca->set->bucket_lock); in bch_prio_write()
675 mutex_lock(&ca->set->bucket_lock); in bch_prio_write()
1890 mutex_init(&c->bucket_lock); in bch_cache_set_alloc()
2075 mutex_lock(&c->bucket_lock); in run_cache_set()
2077 mutex_unlock(&c->bucket_lock); in run_cache_set()
Djournal.c454 mutex_lock(&c->bucket_lock); in btree_flush_write()
528 mutex_unlock(&c->bucket_lock); in btree_flush_write()
Dbcache.h551 struct mutex bucket_lock; member
/linux-6.12.1/fs/bcachefs/
Dbuckets.h77 static inline void bucket_lock(struct bucket *b) in bucket_lock() function
94 lockdep_is_held(&ca->bucket_lock)); in bucket_gens()
Dbuckets.c611 bucket_lock(g); in bch2_trigger_pointer()
999 bucket_lock(g); in bch2_mark_metadata_bucket()
1281 down_write(&ca->bucket_lock); in bch2_dev_buckets_resize()
1302 up_write(&ca->bucket_lock); in bch2_dev_buckets_resize()
Dbcachefs.h549 struct rw_semaphore bucket_lock; member
Dsuper.c1312 init_rwsem(&ca->bucket_lock); in __bch2_dev_alloc()
Dec.c316 bucket_lock(g); in mark_stripe_bucket()