Searched refs:readers (Results 1 – 8 of 8) sorted by relevance
331 atomic_set(&lock->readers, 0); in btrfs_drew_lock_init()340 if (atomic_read(&lock->readers)) in btrfs_drew_try_write_lock()347 if (atomic_read(&lock->readers)) { in btrfs_drew_try_write_lock()360 wait_event(lock->pending_writers, !atomic_read(&lock->readers)); in btrfs_drew_write_lock()372 atomic_inc(&lock->readers); in btrfs_drew_read_lock()391 if (atomic_dec_and_test(&lock->readers)) in btrfs_drew_read_unlock()
174 atomic_set(&ret->readers, 0); in btrfs_alloc_subpage()249 atomic_add(nbits, &subpage->readers); in btrfs_subpage_start_reader()262 ASSERT(atomic_read(&subpage->readers) >= nbits); in btrfs_subpage_end_reader()263 last = atomic_sub_and_test(nbits, &subpage->readers); in btrfs_subpage_end_reader()303 ASSERT(atomic_read(&subpage->readers) == 0); in btrfs_subpage_start_writer()
197 atomic_t readers; member
55 atomic_t readers; member
3285 if (atomic_read(&subpage->readers)) in page_range_has_eb()
413 !READ_ONCE(pipe->readers); in pipe_writable()446 if (!pipe->readers) { in pipe_write()487 if (!pipe->readers) { in pipe_write()698 if (!pipe->readers) in pipe_poll()727 pipe->readers--; in pipe_release()732 if (!pipe->readers != !pipe->writers) { in pipe_release()893 pipe->readers = pipe->writers = 1; in get_pipe_inode()1148 if (pipe->readers++ == 0) in fifo_open()1170 if (!is_pipe && (filp->f_flags & O_NONBLOCK) && !pipe->readers) in fifo_open()1177 if (!is_pipe && !pipe->readers) { in fifo_open()[all …]
209 if (unlikely(!pipe->readers)) { in splice_to_pipe()252 if (unlikely(!pipe->readers)) { in add_to_pipe()1041 pipe->readers = 1; in splice_direct_to_actor()1205 if (unlikely(!pipe->readers)) { in wait_for_space()1650 if (!pipe->readers) { in opipe_prep()1709 if (!opipe->readers) { in splice_pipe_to_pipe()1833 if (!opipe->readers) { in link_pipe()
472 pipe->readers++; in wait_for_dump_helpers()482 wait_event_interruptible(pipe->rd_wait, pipe->readers == 1); in wait_for_dump_helpers()485 pipe->readers--; in wait_for_dump_helpers()