/fs/cifs/ |
D | dfs_cache.c | 362 static inline void dump_refs(const struct dfs_info3_param *refs, int numrefs) in dump_refs() argument 368 const struct dfs_info3_param *ref = &refs[i]; in dump_refs() 491 static int copy_ref_data(const struct dfs_info3_param *refs, int numrefs, in copy_ref_data() argument 496 ce->ttl = max_t(int, refs[0].ttl, CACHE_MIN_TTL); in copy_ref_data() 498 ce->srvtype = refs[0].server_type; in copy_ref_data() 499 ce->hdr_flags = refs[0].flags; in copy_ref_data() 500 ce->ref_flags = refs[0].ref_flag; in copy_ref_data() 501 ce->path_consumed = refs[0].path_consumed; in copy_ref_data() 506 t = alloc_target(refs[i].node_name, refs[i].path_consumed); in copy_ref_data() 527 static struct cache_entry *alloc_cache_entry(struct dfs_info3_param *refs, int numrefs) in alloc_cache_entry() argument [all …]
|
/fs/btrfs/ |
D | delayed-inode.c | 46 refcount_set(&delayed_node->refs, 0); in btrfs_init_delayed_node() 75 refcount_inc(&node->refs); in btrfs_get_delayed_node() 84 refcount_inc(&node->refs); /* can be accessed */ in btrfs_get_delayed_node() 106 if (refcount_inc_not_zero(&node->refs)) { in btrfs_get_delayed_node() 107 refcount_inc(&node->refs); in btrfs_get_delayed_node() 141 refcount_set(&node->refs, 2); in btrfs_get_or_create_delayed_node() 182 refcount_inc(&node->refs); /* inserted into list */ in btrfs_queue_delayed_node() 196 refcount_dec(&node->refs); /* not in the list */ in btrfs_dequeue_delayed_node() 217 refcount_inc(&node->refs); in btrfs_first_delayed_node() 244 refcount_inc(&next->refs); in btrfs_next_delayed_node() [all …]
|
D | delayed-ref.h | 36 refcount_t refs; member 74 refcount_t refs; member 312 WARN_ON(refcount_read(&ref->refs) == 0); in btrfs_put_delayed_ref() 313 if (refcount_dec_and_test(&ref->refs)) { in btrfs_put_delayed_ref() 342 if (refcount_dec_and_test(&head->refs)) in btrfs_put_delayed_ref_head()
|
D | extent-tree.c | 117 u64 offset, int metadata, u64 *refs, u64 *flags) in btrfs_lookup_extent_info() argument 206 refcount_inc(&head->refs); in btrfs_lookup_extent_info() 233 if (refs) in btrfs_lookup_extent_info() 234 *refs = num_refs; in btrfs_lookup_extent_info() 994 u64 refs; in setup_inline_extent_backref() local 1008 refs = btrfs_extent_refs(leaf, ei); in setup_inline_extent_backref() 1009 refs += refs_to_add; in setup_inline_extent_backref() 1010 btrfs_set_extent_refs(leaf, ei, refs); in setup_inline_extent_backref() 1088 u64 refs; in update_inline_extent_backref() local 1091 refs = btrfs_extent_refs(leaf, ei); in update_inline_extent_backref() [all …]
|
D | ordered-data.c | 207 refcount_set(&entry->refs, 1); in __btrfs_add_ordered_extent() 429 refcount_inc(&entry->refs); in btrfs_mark_ordered_io_finished() 501 refcount_inc(&entry->refs); in btrfs_dec_test_ordered_pending() 518 if (refcount_dec_and_test(&entry->refs)) { in btrfs_put_ordered_extent() 652 refcount_inc(&ordered->refs); in btrfs_wait_ordered_extents() 831 refcount_inc(&entry->refs); in btrfs_lookup_ordered_extent() 872 refcount_inc(&entry->refs); in btrfs_lookup_ordered_range() 900 refcount_inc(&ordered->refs); in btrfs_get_ordered_extents_for_logging() 923 refcount_inc(&entry->refs); in btrfs_lookup_first_ordered_extent() 999 refcount_inc(&entry->refs); in btrfs_lookup_first_ordered_range() [all …]
|
D | ref-verify.c | 70 struct rb_root refs; member 245 while((n = rb_first(&be->refs))) { in free_block_entry() 247 rb_erase(&ref->node, &be->refs); in free_block_entry() 300 be->refs = RB_ROOT; in add_block_entry() 344 exist = insert_ref_entry(&be->refs, ref); in add_tree_block() 373 if (insert_ref_entry(&be->refs, ref)) { in add_shared_data_ref() 411 if (insert_ref_entry(&be->refs, ref)) { in add_extent_data_ref() 633 for (n = rb_first(&be->refs); n; n = rb_next(n)) { in dump_block_entry() 814 exist = insert_ref_entry(&be->refs, ref); in btrfs_ref_tree_mod() 828 rb_erase(&exist->node, &be->refs); in btrfs_ref_tree_mod()
|
D | extent_map.c | 60 refcount_set(&em->refs, 1); in alloc_extent_map() 76 WARN_ON(refcount_read(&em->refs) == 0); in free_extent_map() 77 if (refcount_dec_and_test(&em->refs)) { in free_extent_map() 248 if (refcount_read(&em->refs) > 2) in try_merge_map() 346 refcount_inc(&em->refs); in setup_extent_mapping() 445 refcount_inc(&em->refs); in __lookup_extent_mapping()
|
D | extent_io.c | 85 eb->start, eb->len, atomic_read(&eb->refs), eb->bflags, in btrfs_extent_buffer_leak_debug_check() 102 refcount_read(&state->refs)); in btrfs_extent_state_leak_debug_check() 347 refcount_set(&state->refs, 1); in alloc_extent_state() 357 if (refcount_dec_and_test(&state->refs)) { in free_extent_state() 753 refcount_dec(&cached->refs); in __clear_extent_bit() 905 refcount_inc(&state->refs); in wait_extent_bit() 950 refcount_inc(&state->refs); in cache_state_if_flags() 1797 refcount_inc(&state->refs); in btrfs_find_delalloc_range() 3528 refcount_inc(&em->refs); in __get_extent_map() 3539 refcount_inc(&em->refs); in __get_extent_map() [all …]
|
D | delayed-inode.h | 57 refcount_t refs; member 70 refcount_t refs; member
|
D | scrub.c | 59 refcount_t refs; member 74 atomic_t refs; member 105 refcount_t refs; /* free mem on transition to zero */ member 135 refcount_t refs; member 194 refcount_t refs; member 209 u64 refs; member 262 refcount_inc(&sctx->refs); in scrub_pending_bio_inc() 335 entry->refs++; in insert_full_stripe_lock() 347 ret->refs = 1; in insert_full_stripe_lock() 500 if (fstripe_lock->refs == 0) { in unlock_full_stripe() [all …]
|
D | raid56.c | 144 refcount_t refs; member 382 refcount_dec(&rbio->refs); in __remove_rbio_from_cache() 473 refcount_inc(&rbio->refs); in cache_rbio() 689 refcount_dec(&cur->refs); in lock_stripe_add() 733 refcount_inc(&rbio->refs); in lock_stripe_add() 779 refcount_dec(&rbio->refs); in unlock_stripe() 796 refcount_inc(&next->refs); in unlock_stripe() 829 if (!refcount_dec_and_test(&rbio->refs)) in __free_raid_bio() 1006 refcount_set(&rbio->refs, 1); in alloc_rbio()
|
D | extent_map.h | 47 refcount_t refs; member
|
D | ctree.c | 138 if (atomic_inc_not_zero(&eb->refs)) { in btrfs_root_node() 265 u64 refs; in update_ref_for_cow() local 291 &refs, &flags); in update_ref_for_cow() 294 if (refs == 0) { in update_ref_for_cow() 300 refs = 1; in update_ref_for_cow() 312 if (refs > 1) { in update_ref_for_cow() 467 atomic_inc(&cow->refs); in __btrfs_cow_block() 1093 atomic_inc(&left->refs); in balance_level() 1618 atomic_inc(&b->refs); in btrfs_search_slot_get_root() 2556 atomic_inc(&c->refs); in insert_new_root() [all …]
|
D | ordered-data.h | 117 refcount_t refs; member
|
D | disk-io.h | 108 if (refcount_inc_not_zero(&root->refs)) in btrfs_grab_root()
|
D | delayed-ref.c | 404 refcount_inc(&head->refs); in btrfs_delayed_ref_lock() 752 refcount_set(&head_ref->refs, 1); in init_delayed_ref_head() 872 refcount_set(&ref->refs, 1); in init_delayed_ref_common()
|
D | btrfs_inode.h | 359 refcount_t refs; member
|
D | backref.c | 1205 u64 time_seq, struct ulist *refs, argument 1275 refcount_inc(&head->refs); 1403 ret = ulist_add_merge_ptr(refs, ref->parent, 2000 struct ulist *refs = NULL; local 2027 seq_elem.seq, &refs, 2033 while (!ret && (ref_node = ulist_next(refs, &ref_uiter))) { 2055 free_leaf_list(refs);
|
D | block-group.h | 121 refcount_t refs; member
|
D | extent_io.h | 87 atomic_t refs; member
|
/fs/btrfs/tests/ |
D | qgroup-tests.c | 73 u64 refs; in add_tree_ref() local 97 refs = btrfs_extent_refs(path->nodes[0], item); in add_tree_ref() 98 btrfs_set_extent_refs(path->nodes[0], item, refs + 1); in add_tree_ref() 155 u64 refs; in remove_extent_ref() local 179 refs = btrfs_extent_refs(path->nodes[0], item); in remove_extent_ref() 180 btrfs_set_extent_refs(path->nodes[0], item, refs - 1); in remove_extent_ref()
|
D | extent-map-tests.c | 24 if (refcount_read(&em->refs) != 1) { in free_extent_map_tree() 28 em->block_len, refcount_read(&em->refs)); in free_extent_map_tree() 30 refcount_set(&em->refs, 1); in free_extent_map_tree()
|
/fs/ |
D | file.c | 875 unsigned int fd, fmode_t mask, unsigned int refs) in __fget_files_rcu() argument 904 if (unlikely(!get_file_rcu_many(file, refs))) in __fget_files_rcu() 917 fput_many(file, refs); in __fget_files_rcu() 930 fmode_t mask, unsigned int refs) in __fget_files() argument 935 file = __fget_files_rcu(files, fd, mask, refs); in __fget_files() 942 unsigned int refs) in __fget() argument 944 return __fget_files(current->files, fd, mask, refs); in __fget() 947 struct file *fget_many(unsigned int fd, unsigned int refs) in fget_many() argument 949 return __fget(fd, FMODE_PATH, refs); in fget_many()
|
D | eventpoll.c | 219 struct hlist_head refs; member 1319 static int reverse_path_check_proc(struct hlist_head *refs, int depth) in reverse_path_check_proc() argument 1328 hlist_for_each_entry_rcu(epi, refs, fllink) { in reverse_path_check_proc() 1329 struct hlist_head *refs = &epi->ep->refs; in reverse_path_check_proc() local 1330 if (hlist_empty(refs)) in reverse_path_check_proc() 1333 error = reverse_path_check_proc(refs, depth + 1); in reverse_path_check_proc() 1414 head = &ep->refs; in attach_epitem()
|
D | file_table.c | 329 void fput_many(struct file *file, unsigned int refs) in fput_many() argument 331 if (atomic_long_sub_and_test(refs, &file->f_count)) { in fput_many()
|