Home
last modified time | relevance | path

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

/linux-6.12.1/fs/bcachefs/
Dsix.c32 #define SIX_LOCK_HELD_write (1U << 27) macro
54 .lock_fail = SIX_LOCK_HELD_write,
65 .lock_val = SIX_LOCK_HELD_write,
67 .held_mask = SIX_LOCK_HELD_write,
125 (try != !(atomic_read(&lock->state) & SIX_LOCK_HELD_write))); in __do_six_trylock()
173 atomic_add(SIX_LOCK_HELD_write, &lock->state); in __do_six_trylock()
186 old = atomic_sub_return(SIX_LOCK_HELD_write, &lock->state); in __do_six_trylock()
207 (atomic_read(&lock->state) & SIX_LOCK_HELD_write)); in __do_six_trylock()
418 EBUG_ON(atomic_read(&lock->state) & SIX_LOCK_HELD_write); in six_lock_slowpath()
419 atomic_add(SIX_LOCK_HELD_write, &lock->state); in six_lock_slowpath()
[all …]