/linux-master/fs/btrfs/ |
H A D | locking.c | 125 * - try-lock semantics for readers and writers 336 * if there are pending readers no new writers would be allowed to come in and 343 atomic_set(&lock->writers, 0); 354 atomic_inc(&lock->writers); 356 /* Ensure writers count is updated before we check for pending readers */ 377 atomic_dec(&lock->writers); 387 * goes to sleep in case of active writers. This guarantees new writers 393 wait_event(lock->pending_readers, atomic_read(&lock->writers) == 0); 399 * atomic_dec_and_test implies a full barrier, so woken up writers [all...] |
H A D | locking.h | 202 atomic_t writers; member in struct:btrfs_drew_lock
|
H A D | subpage.h | 81 atomic_t writers; member in union:btrfs_subpage::__anon1708
|
H A D | subpage.c | 176 atomic_set(&ret->writers, 0); 342 ret = atomic_add_return(nbits, &subpage->writers); 364 * subpage::writers is 0. Handle them in a special way. 366 if (atomic_read(&subpage->writers) == 0) { 371 ASSERT(atomic_read(&subpage->writers) >= nbits); 375 last = atomic_sub_and_test(nbits, &subpage->writers); 725 * It should not have any subpage::writers count. 753 * without writers number. 755 * Since we own the page lock, no one else could touch subpage::writers 758 if (atomic_read(&subpage->writers) [all...] |
/linux-master/fs/ |
H A D | pipe.c | 72 * FIFOs and Pipes now generate SIGIO for both readers and writers. 215 unsigned int writers = READ_ONCE(pipe->writers); local 217 return !pipe_empty(head, tail) || !writers; 267 * We only wake up writers if the pipe was full when we started 270 * But when we do wake up writers, we do so using a sync wakeup 352 if (!pipe->writers) 376 * So we still need to wake up any pending writers in the 689 if (!pipe->writers && filp->f_version != pipe->w_counter) 731 pipe->writers [all...] |
H A D | splice.c | 531 if (!pipe->writers) 578 * This function will wake up pipe writers if necessary. It should 825 if (!pipe->writers) 1684 if (!pipe->writers) 1785 if (pipe_empty(i_head, i_tail) && !ipipe->writers)
|
H A D | coredump.c | 473 pipe->writers--; 486 pipe->writers++;
|
/linux-master/drivers/md/dm-vdo/indexer/ |
H A D | volume-index.h | 187 struct buffered_writer **writers,
|
H A D | index-layout.c | 1075 struct buffered_writer *writers[MAX_ZONES]; local 1087 result = open_region_writer(layout, &isl->open_chapter, &writers[0]); 1093 result = uds_save_open_chapter(index, writers[0]); 1094 uds_free_buffered_writer(writers[0]); 1102 &writers[zone]); 1105 uds_free_buffered_writer(writers[zone - 1]); 1112 result = uds_save_volume_index(index->volume_index, writers, index->zone_count); 1114 uds_free_buffered_writer(writers[zone]); 1120 result = open_region_writer(layout, &isl->index_page_map, &writers[0]); 1126 result = uds_write_index_page_map(index->volume->index_page_map, writers[ [all...] |
H A D | volume-index.c | 1108 struct buffered_writer **writers, unsigned int writer_count) 1114 result = start_saving_volume_index(volume_index, zone, writers[zone]); 1122 result = uds_write_guard_delta_list(writers[zone]); 1126 result = uds_flush_buffered_writer(writers[zone]); 1107 uds_save_volume_index(struct volume_index *volume_index, struct buffered_writer **writers, unsigned int writer_count) argument
|
/linux-master/include/media/ |
H A D | dvbdev.h | 141 * @writers: Initialized by the caller. Each call to open() in Read/Write 174 int writers; member in struct:dvb_device
|
/linux-master/include/linux/ |
H A D | pipe_fs_i.h | 47 * @writers: number of current writers of this pipe 67 unsigned int writers; member in struct:pipe_inode_info
|
/linux-master/drivers/mtd/ubi/ |
H A D | kapi.c | 167 if (vol->exclusive || vol->writers > 0) 169 vol->writers += 1; 173 if (vol->exclusive || vol->writers || vol->readers || 360 vol->writers -= 1;
|
H A D | cdev.c | 50 users = vol->readers + vol->writers + vol->exclusive + vol->metaonly; 56 vol->readers = vol->writers = vol->metaonly = 0; 76 ubi_assert(vol->readers == 0 && vol->writers == 0 && vol->metaonly == 0); 82 vol->writers = 1;
|
H A D | ubi.h | 282 * @writers: number of users holding this volume in read-write mode 337 int writers; member in struct:ubi_volume 447 * @vol->readers, @vol->writers, @vol->exclusive,
|
/linux-master/fs/smb/client/ |
H A D | misc.c | 586 if (!cinode->writers) 588 cinode->writers++; 591 cinode->writers--; 592 if (cinode->writers == 0) { 606 cinode->writers--; 607 if (cinode->writers == 0) {
|
/linux-master/drivers/media/firewire/ |
H A D | firedtv-ci.c | 225 .writers = 1,
|
/linux-master/include/linux/sunrpc/ |
H A D | cache.h | 117 atomic_t writers; /* how many time is /channel open */ member in struct:cache_detail 118 time64_t last_close; /* if no writers, when did last close */ 119 time64_t last_warn; /* when we last warned about no writers */
|
/linux-master/drivers/media/pci/ngene/ |
H A D | ngene-dvb.c | 110 .writers = 1,
|
/linux-master/drivers/staging/media/av7110/ |
H A D | av7110_ca.c | 355 .writers = 1,
|
/linux-master/drivers/media/dvb-core/ |
H A D | dvbdev.c | 140 if (!dvbdev->writers) 142 dvbdev->writers--; 160 dvbdev->writers++;
|
H A D | dvb_frontend.c | 631 if (fepriv->dvbdev->writers == 1) 2779 !adapter->mfe_dvbdev->writers) { 3010 .writers = 1,
|
/linux-master/net/sunrpc/ |
H A D | cache.c | 392 atomic_set(&cd->writers, 0); 1044 atomic_inc(&cd->writers); 1075 atomic_dec(&cd->writers); 1184 if (atomic_read(&detail->writers))
|
/linux-master/drivers/media/pci/bt8xx/ |
H A D | dst_ca.c | 653 .writers = 1,
|
/linux-master/fs/jfs/ |
H A D | jfs_dmap.c | 735 int writers; local 827 writers = atomic_read(&bmp->db_active[agno]); 828 if ((writers > 1) || 829 ((writers == 1) && (JFS_IP(ip)->active_ag != agno))) {
|