Home
last modified time | relevance | path

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

/fs/
Dpipe.c224 unsigned int writers = READ_ONCE(pipe->writers); in pipe_readable() local
226 return !pipe_empty(head, tail) || !writers; in pipe_readable()
340 if (!pipe->writers) in pipe_read()
679 if (!pipe->writers && filp->f_version != pipe->w_counter) in pipe_poll()
721 pipe->writers--; in pipe_release()
724 if (!pipe->readers != !pipe->writers) { in pipe_release()
885 pipe->readers = pipe->writers = 1; in get_pipe_inode()
1140 if (!is_pipe && !pipe->writers) { in fifo_open()
1163 if (!pipe->writers++) in fifo_open()
1181 pipe->writers++; in fifo_open()
[all …]
Dsplice.c482 if (!pipe->writers) in splice_from_pipe_next()
1375 if (!pipe->writers) in ipipe_prep()
1476 if (pipe_empty(i_head, i_tail) && !ipipe->writers) in splice_pipe_to_pipe()
Dcoredump.c532 pipe->writers--; in wait_for_dump_helpers()
545 pipe->writers++; in wait_for_dump_helpers()
/fs/btrfs/
Dlocking.c601 ret = percpu_counter_init(&lock->writers, 0, GFP_KERNEL); in btrfs_drew_lock_init()
614 percpu_counter_destroy(&lock->writers); in btrfs_drew_lock_destroy()
623 percpu_counter_inc(&lock->writers); in btrfs_drew_try_write_lock()
646 percpu_counter_dec(&lock->writers); in btrfs_drew_write_unlock()
663 percpu_counter_sum(&lock->writers) == 0); in btrfs_drew_read_lock()
Dlocking.h136 struct percpu_counter writers; member
/fs/cifs/
Dmisc.c579 if (!cinode->writers) in cifs_get_writer()
581 cinode->writers++; in cifs_get_writer()
584 cinode->writers--; in cifs_get_writer()
585 if (cinode->writers == 0) { in cifs_get_writer()
599 cinode->writers--; in cifs_put_writer()
600 if (cinode->writers == 0) { in cifs_put_writer()
Dcifsglob.h1484 unsigned int writers; /* Number of writers on this inode */ member
Dcifsfs.c346 cifs_inode->writers = 0; in cifs_alloc_inode()
/fs/jfs/
Djfs_dmap.c735 int writers; in dbAlloc() local
827 writers = atomic_read(&bmp->db_active[agno]); in dbAlloc()
828 if ((writers > 1) || in dbAlloc()
829 ((writers == 1) && (JFS_IP(ip)->active_ag != agno))) { in dbAlloc()