Searched refs:blocking_readers (Results 1 – 3 of 3) sorted by relevance
54 atomic_inc(&eb->blocking_readers); in btrfs_set_lock_blocking_rw()89 BUG_ON(atomic_read(&eb->blocking_readers) == 0); in btrfs_clear_lock_blocking_rw()95 if (atomic_dec_and_test(&eb->blocking_readers) && in btrfs_clear_lock_blocking_rw()184 atomic_read(&eb->blocking_readers)) in btrfs_try_tree_write_lock()189 atomic_read(&eb->blocking_readers)) { in btrfs_try_tree_write_lock()237 WARN_ON(atomic_read(&eb->blocking_readers) == 0); in btrfs_tree_read_unlock_blocking()241 if (atomic_dec_and_test(&eb->blocking_readers) && in btrfs_tree_read_unlock_blocking()255 wait_event(eb->read_lock_wq, atomic_read(&eb->blocking_readers) == 0); in btrfs_tree_lock()258 if (atomic_read(&eb->blocking_readers)) { in btrfs_tree_lock()261 atomic_read(&eb->blocking_readers) == 0); in btrfs_tree_lock()
141 atomic_t blocking_readers; member
4773 atomic_set(&eb->blocking_readers, 0); in __alloc_extent_buffer()