Lines Matching refs:dev_bucket
12 u64 dev_bucket = bucket_to_u64(bucket); in bch2_bucket_nocow_is_locked() local
13 struct nocow_lock_bucket *l = bucket_nocow_lock(t, dev_bucket); in bch2_bucket_nocow_is_locked()
17 if (l->b[i] == dev_bucket && atomic_read(&l->l[i])) in bch2_bucket_nocow_is_locked()
26 u64 dev_bucket = bucket_to_u64(bucket); in bch2_bucket_nocow_unlock() local
27 struct nocow_lock_bucket *l = bucket_nocow_lock(t, dev_bucket); in bch2_bucket_nocow_unlock()
32 if (l->b[i] == dev_bucket) { in bch2_bucket_nocow_unlock()
45 u64 dev_bucket, int flags) in __bch2_bucket_nocow_trylock() argument
53 if (l->b[i] == dev_bucket) in __bch2_bucket_nocow_trylock()
58 l->b[i] = dev_bucket; in __bch2_bucket_nocow_trylock()
81 u64 dev_bucket, int flags) in __bch2_bucket_nocow_lock() argument
83 if (!__bch2_bucket_nocow_trylock(l, dev_bucket, flags)) { in __bch2_bucket_nocow_lock()
87 __closure_wait_event(&l->wait, __bch2_bucket_nocow_trylock(l, dev_bucket, flags)); in __bch2_bucket_nocow_lock()