Lines Matching defs:lock
14 * The type of a PBN lock.
25 * A PBN lock.
28 /* The implementation of the lock */
31 /* The number of VIOs holding or sharing this lock */
34 * The number of compressed block writers holding a share of this lock while they are
39 /* Whether the locked PBN has been provisionally referenced on behalf of the lock holder. */
44 * block at the time the lock was acquired.
50 * increments during the lifetime of the lock. Each claim will first increment this
78 bool __must_check vdo_is_pbn_read_lock(const struct pbn_lock *lock);
79 void vdo_downgrade_pbn_write_lock(struct pbn_lock *lock, bool compressed_write);
80 bool __must_check vdo_claim_pbn_lock_increment(struct pbn_lock *lock);
83 * vdo_pbn_lock_has_provisional_reference() - Check whether a PBN lock has a provisional reference.
84 * @lock: The PBN lock.
86 static inline bool vdo_pbn_lock_has_provisional_reference(struct pbn_lock *lock)
88 return ((lock != NULL) && lock->has_provisional_reference);
91 void vdo_assign_pbn_lock_provisional_reference(struct pbn_lock *lock);
92 void vdo_unassign_pbn_lock_provisional_reference(struct pbn_lock *lock);
111 struct pbn_lock *lock);