Home
last modified time | relevance | path

Searched refs:dev_bucket (Results 1 – 6 of 6) sorted by relevance

/linux-6.12.1/fs/bcachefs/
Dnocow_locking.h12 u64 dev_bucket) in bucket_nocow_lock() argument
14 unsigned h = hash_64(dev_bucket, BUCKET_NOCOW_LOCKS_BITS); in bucket_nocow_lock()
30 u64 dev_bucket = bucket_to_u64(bucket); in bch2_bucket_nocow_lock() local
31 struct nocow_lock_bucket *l = bucket_nocow_lock(t, dev_bucket); in bch2_bucket_nocow_lock()
33 __bch2_bucket_nocow_lock(t, l, dev_bucket, flags); in bch2_bucket_nocow_lock()
39 u64 dev_bucket = bucket_to_u64(bucket); in bch2_bucket_nocow_trylock() local
40 struct nocow_lock_bucket *l = bucket_nocow_lock(t, dev_bucket); in bch2_bucket_nocow_trylock()
42 return __bch2_bucket_nocow_trylock(l, dev_bucket, flags); in bch2_bucket_nocow_trylock()
Dnocow_locking.c12 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
[all …]
Dbuckets_waiting_for_journal.c10 unsigned hash_seed_idx, u64 dev_bucket) in bucket_hash() argument
12 return t->d + hash_64(dev_bucket ^ t->hash_seeds[hash_seed_idx], t->bits); in bucket_hash()
30 u64 dev_bucket = (u64) dev << 56 | bucket; in bch2_bucket_needs_journal_commit() local
38 struct bucket_hashed *h = bucket_hash(t, i, dev_bucket); in bch2_bucket_needs_journal_commit()
40 if (h->dev_bucket == dev_bucket) { in bch2_bucket_needs_journal_commit()
62 old = bucket_hash(t, i, new->dev_bucket); in bucket_table_insert()
64 if (old->dev_bucket == new->dev_bucket || in bucket_table_insert()
93 .dev_bucket = (u64) dev << 56 | bucket, in bch2_set_bucket_needs_journal_commit()
Dlru.c44 u64 dev_bucket, u64 time, bool set) in __bch2_lru_set() argument
48 lru_pos(lru_id, dev_bucket, time), set) in __bch2_lru_set()
52 int bch2_lru_del(struct btree_trans *trans, u16 lru_id, u64 dev_bucket, u64 time) in bch2_lru_del() argument
54 return __bch2_lru_set(trans, lru_id, dev_bucket, time, KEY_TYPE_deleted); in bch2_lru_del()
57 int bch2_lru_set(struct btree_trans *trans, u16 lru_id, u64 dev_bucket, u64 time) in bch2_lru_set() argument
59 return __bch2_lru_set(trans, lru_id, dev_bucket, time, KEY_TYPE_set); in bch2_lru_set()
63 u16 lru_id, u64 dev_bucket, in bch2_lru_change() argument
69 return bch2_lru_del(trans, lru_id, dev_bucket, old_time) ?: in bch2_lru_change()
70 bch2_lru_set(trans, lru_id, dev_bucket, new_time); in bch2_lru_change()
Dlru.h15 static inline struct bpos lru_pos(u16 lru_id, u64 dev_bucket, u64 time) in lru_pos() argument
17 struct bpos pos = POS(((u64) lru_id << LRU_TIME_BITS)|time, dev_bucket); in lru_pos()
22 EBUG_ON(pos.offset != dev_bucket); in lru_pos()
Dbuckets_waiting_for_journal_types.h8 u64 dev_bucket; member