Home
last modified time | relevance | path

Searched refs:refs (Results 1 – 25 of 42) sorted by relevance

12

/fs/smb/client/
Ddfs_cache.c362 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 …]
Dmisc.c1375 struct dfs_info3_param *refs = NULL; in cifs_inval_name_dfs_link_error() local
1385 !ses->server->ops->get_dfs_refer(xid, ses, ref_path, &refs, in cifs_inval_name_dfs_link_error()
1388 *islink = refs[0].server_type == DFS_TYPE_LINK; in cifs_inval_name_dfs_link_error()
1389 free_dfs_info_array(refs, num_refs); in cifs_inval_name_dfs_link_error()
/fs/btrfs/
Ddelayed-inode.c47 refcount_set(&delayed_node->refs, 0); in btrfs_init_delayed_node()
64 refcount_inc(&node->refs); in btrfs_get_delayed_node()
73 refcount_inc(&node->refs); /* can be accessed */ in btrfs_get_delayed_node()
95 if (refcount_inc_not_zero(&node->refs)) { in btrfs_get_delayed_node()
96 refcount_inc(&node->refs); in btrfs_get_delayed_node()
130 refcount_set(&node->refs, 2); in btrfs_get_or_create_delayed_node()
171 refcount_inc(&node->refs); /* inserted into list */ in btrfs_queue_delayed_node()
185 refcount_dec(&node->refs); /* not in the list */ in btrfs_dequeue_delayed_node()
206 refcount_inc(&node->refs); in btrfs_first_delayed_node()
233 refcount_inc(&next->refs); in btrfs_next_delayed_node()
[all …]
Ddelayed-ref.h36 refcount_t refs; member
73 refcount_t refs; member
317 WARN_ON(refcount_read(&ref->refs) == 0); in btrfs_put_delayed_ref()
318 if (refcount_dec_and_test(&ref->refs)) { in btrfs_put_delayed_ref()
347 if (refcount_dec_and_test(&head->refs)) in btrfs_put_delayed_ref_head()
Dextent-tree.c118 u64 offset, int metadata, u64 *refs, u64 *flags) in btrfs_lookup_extent_info() argument
209 refcount_inc(&head->refs); in btrfs_lookup_extent_info()
236 if (refs) in btrfs_lookup_extent_info()
237 *refs = num_refs; in btrfs_lookup_extent_info()
1003 u64 refs; in setup_inline_extent_backref() local
1017 refs = btrfs_extent_refs(leaf, ei); in setup_inline_extent_backref()
1018 refs += refs_to_add; in setup_inline_extent_backref()
1019 btrfs_set_extent_refs(leaf, ei, refs); in setup_inline_extent_backref()
1096 u64 refs; in update_inline_extent_backref() local
1099 refs = btrfs_extent_refs(leaf, ei); in update_inline_extent_backref()
[all …]
Dordered-data.c217 refcount_set(&entry->refs, 1); in btrfs_add_ordered_extent()
409 refcount_inc(&entry->refs); in btrfs_mark_ordered_io_finished()
482 refcount_inc(&entry->refs); in btrfs_dec_test_ordered_pending()
500 if (refcount_dec_and_test(&entry->refs)) { in btrfs_put_ordered_extent()
654 refcount_inc(&ordered->refs); in btrfs_wait_ordered_extents()
842 refcount_inc(&entry->refs); in btrfs_lookup_ordered_extent()
885 refcount_inc(&entry->refs); in btrfs_lookup_ordered_range()
915 refcount_inc(&ordered->refs); in btrfs_get_ordered_extents_for_logging()
939 refcount_inc(&entry->refs); in btrfs_lookup_first_ordered_extent()
1016 refcount_inc(&entry->refs); in btrfs_lookup_first_ordered_range()
[all …]
Dref-verify.c70 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()
Dextent_map.c59 refcount_set(&em->refs, 1); in alloc_extent_map()
75 if (refcount_dec_and_test(&em->refs)) { in free_extent_map()
252 if (refcount_read(&em->refs) > 2) in try_merge_map()
354 refcount_inc(&em->refs); in setup_extent_mapping()
450 refcount_inc(&em->refs); in __lookup_extent_mapping()
560 refcount_inc(&next->refs); in btrfs_next_extent_map()
779 refcount_inc(&next_em->refs); in btrfs_drop_extent_map_range()
Dextent_io.c77 eb->start, eb->len, atomic_read(&eb->refs), eb->bflags, in btrfs_extent_buffer_leak_debug_check()
1718 refcount_inc(&em->refs); in __get_extent_map()
1729 refcount_inc(&em->refs); in __get_extent_map()
2552 if (eb && atomic_inc_not_zero(&eb->refs)) { in find_extent_buffer_nolock()
2618 atomic_dec(&eb->refs); in end_bio_subpage_eb_writepage()
2927 ret = atomic_inc_not_zero(&eb->refs); in submit_eb_page()
4299 atomic_set(&eb->refs, 1); in __alloc_extent_buffer()
4398 int refs; in check_buffer_tree_ref() local
4422 refs = atomic_read(&eb->refs); in check_buffer_tree_ref()
4423 if (refs >= 2 && test_bit(EXTENT_BUFFER_TREE_REF, &eb->bflags)) in check_buffer_tree_ref()
[all …]
Ddelayed-inode.h58 refcount_t refs; member
89 refcount_t refs; member
Dscrub.c60 refcount_t refs; member
72 atomic_t refs; member
112 refcount_t refs; /* free mem on transition to zero */ member
142 refcount_t refs; member
198 refcount_t refs; member
213 u64 refs; member
266 refcount_set(&sblock->refs, 1); in alloc_scrub_block()
318 atomic_set(&ssector->refs, 1); in alloc_scrub_sector()
432 refcount_inc(&sctx->refs); in scrub_pending_bio_inc()
505 entry->refs++; in insert_full_stripe_lock()
[all …]
Dextent-io-tree.c48 refcount_read(&state->refs)); in btrfs_extent_state_leak_debug_check()
152 refcount_set(&state->refs, 1); in alloc_extent_state()
170 if (refcount_dec_and_test(&state->refs)) { in free_extent_state()
598 refcount_dec(&cached->refs); in __clear_extent_bit()
741 refcount_inc(&state->refs); in wait_extent_bit()
767 refcount_inc(&state->refs); in cache_state_if_flags()
924 refcount_inc(&state->refs); in btrfs_find_delalloc_range()
Draid56.h92 refcount_t refs; member
Draid56.c329 refcount_dec(&rbio->refs); in __remove_rbio_from_cache()
420 refcount_inc(&rbio->refs); in cache_rbio()
636 refcount_dec(&cur->refs); in lock_stripe_add()
680 refcount_inc(&rbio->refs); in lock_stripe_add()
726 refcount_dec(&rbio->refs); in unlock_stripe()
743 refcount_inc(&next->refs); in unlock_stripe()
776 if (!refcount_dec_and_test(&rbio->refs)) in __free_raid_bio()
955 refcount_set(&rbio->refs, 1); in alloc_rbio()
Dextent_map.h55 refcount_t refs; member
Dordered-data.h129 refcount_t refs; member
Dctree.c156 if (atomic_inc_not_zero(&eb->refs)) { in btrfs_root_node()
283 u64 refs; in update_ref_for_cow() local
309 &refs, &flags); in update_ref_for_cow()
312 if (refs == 0) { in update_ref_for_cow()
318 refs = 1; in update_ref_for_cow()
330 if (refs > 1) { in update_ref_for_cow()
485 atomic_inc(&cow->refs); in __btrfs_cow_block()
1116 atomic_inc(&left->refs); in balance_level()
1673 atomic_inc(&b->refs); in btrfs_search_slot_get_root()
2780 atomic_inc(&c->refs); in insert_new_root()
[all …]
Ddisk-io.h104 if (refcount_inc_not_zero(&root->refs)) in btrfs_grab_root()
Ddelayed-ref.c418 refcount_inc(&head->refs); in btrfs_delayed_ref_lock()
766 refcount_set(&head_ref->refs, 1); in init_delayed_ref_head()
886 refcount_set(&ref->refs, 1); in init_delayed_ref_common()
Dbackref.c1207 u64 time_seq, struct ulist *refs, in find_parent_nodes() argument
1271 refcount_inc(&head->refs); in find_parent_nodes()
1400 ret = ulist_add_merge_ptr(refs, ref->parent, in find_parent_nodes()
2171 struct ulist *refs = NULL; in iterate_extent_inodes() local
2198 seq_elem.seq, &refs, in iterate_extent_inodes()
2204 while (!ret && (ref_node = ulist_next(refs, &ref_uiter))) { in iterate_extent_inodes()
2226 free_leaf_list(refs); in iterate_extent_inodes()
Dextent-io-tree.h93 refcount_t refs; member
/fs/btrfs/tests/
Dqgroup-tests.c73 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()
Dextent-map-tests.c25 if (refcount_read(&em->refs) != 1) { in free_extent_map_tree()
29 em->block_len, refcount_read(&em->refs)); in free_extent_map_tree()
31 refcount_set(&em->refs, 1); in free_extent_map_tree()
/fs/
Deventpoll.c221 struct hlist_head refs; member
1366 static int reverse_path_check_proc(struct hlist_head *refs, int depth) in reverse_path_check_proc() argument
1375 hlist_for_each_entry_rcu(epi, refs, fllink) { in reverse_path_check_proc()
1376 struct hlist_head *refs = &epi->ep->refs; in reverse_path_check_proc() local
1377 if (hlist_empty(refs)) in reverse_path_check_proc()
1380 error = reverse_path_check_proc(refs, depth + 1); in reverse_path_check_proc()
1466 head = &ep->refs; in attach_epitem()
/fs/hugetlbfs/
Dinode.c483 kref_get(&vma_lock->refs); in hugetlb_unmap_file_folio()
511 kref_put(&vma_lock->refs, hugetlb_vma_lock_release); in hugetlb_unmap_file_folio()
526 kref_put(&vma_lock->refs, hugetlb_vma_lock_release); in hugetlb_unmap_file_folio()
682 resv_map_release(&resv_map->refs); in hugetlbfs_evict_inode()
1024 kref_put(&resv_map->refs, resv_map_release); in hugetlbfs_get_inode()

12