Searched refs:kref_get_unless_zero (Results 1 – 25 of 80) sorted by relevance
1234
233 The above example could also be optimized using kref_get_unless_zero() in242 if (!kref_get_unless_zero(&entry->refcount))265 it's important that kref_get_unless_zero is enclosed in the same critical267 otherwise kref_get_unless_zero may reference already freed memory.268 Note that it is illegal to use kref_get_unless_zero without checking its270 kref_get_unless_zero() will return true, then use kref_get() instead.275 The function kref_get_unless_zero also makes it possible to use rcu293 if (!kref_get_unless_zero(&entry->refcount))
31 if (exist && !kref_get_unless_zero(&exist->kref)) { in ceph_find_or_create_string()70 } else if (!kref_get_unless_zero(&exist->kref)) { in ceph_find_or_create_string()
87 if (!kref_get_unless_zero(&orig_node->refcount)) in batadv_orig_hash_find()134 if (!kref_get_unless_zero(&tmp->refcount)) in batadv_orig_node_vlan_get()359 if (router && !kref_get_unless_zero(&router->refcount)) in batadv_orig_router_get()387 if (!kref_get_unless_zero(&tmp->refcount)) in batadv_orig_ifinfo_get()466 if (!kref_get_unless_zero(&tmp_neigh_ifinfo->refcount)) in batadv_neigh_ifinfo_get()546 if (!kref_get_unless_zero(&tmp_neigh_node->refcount)) in batadv_neigh_node_get()648 if (!kref_get_unless_zero(&tmp_hardif_neigh->refcount)) in batadv_hardif_neigh_get()1263 if (!kref_get_unless_zero(&neigh->refcount)) in batadv_find_best_neighbor()1324 if (!kref_get_unless_zero(&hard_iface->refcount)) in batadv_purge_orig_node()
149 if (!kref_get_unless_zero(&hard_iface->refcount)) in batadv_primary_if_get_selected()
113 if (!kref_get_unless_zero(&gw_node->refcount)) in batadv_gw_get_selected_gw_node()142 if (!kref_get_unless_zero(&orig_node->refcount)) in batadv_gw_get_selected_orig()411 if (!kref_get_unless_zero(&gw_node_tmp->refcount)) in batadv_gw_node_get()
183 if (!kref_get_unless_zero(&hard_iface->refcount)) in batadv_v_ogm_send()742 if (!kref_get_unless_zero(&hard_iface->refcount)) in batadv_v_ogm_process()
889 if (!kref_get_unless_zero(&tmp_orig_node->refcount)) in batadv_mcast_forw_ipv4_node_get()916 if (!kref_get_unless_zero(&tmp_orig_node->refcount)) in batadv_mcast_forw_ipv6_node_get()967 if (!kref_get_unless_zero(&tmp_orig_node->refcount)) in batadv_mcast_forw_unsnoop_node_get()
84 kref_get_unless_zero(&hard_iface->refcount)) in batadv_hardif_get_by_netdev()448 kref_get_unless_zero(&hard_iface->refcount)) in batadv_hardif_get_active()
252 if (p && kref_get_unless_zero(&p->label.count)) in aa_get_profile_not0()272 } while (c && !kref_get_unless_zero(&c->label.count)); in aa_get_profile_rcu()
91 if (data && kref_get_unless_zero(&(data->count))) in __aa_get_loaddata()
378 if (l && kref_get_unless_zero(&l->count)) in __aa_get_label()407 } while (c && !kref_get_unless_zero(&c->count)); in aa_get_label_rcu()
114 static inline int __must_check kref_get_unless_zero(struct kref *kref) in kref_get_unless_zero() function
284 if (kref_get_unless_zero(&fence->refcount)) in dma_fence_get_rcu()
56 kref_get_unless_zero(&___str->kref)) \
139 return kref_get_unless_zero(&se_cmd->cmd_kref); in __target_check_io_state()250 rc = kref_get_unless_zero(&cmd->cmd_kref); in core_tmr_drain_tmr_list()
83 if (!kref_get_unless_zero(&ch->refcount)) in host1x_channel_get_index()
243 if (!kref_get_unless_zero(&base->refcount)) in ttm_base_object_lookup()265 if (!kref_get_unless_zero(&base->refcount)) in ttm_base_object_lookup_for_ref()347 if (kref_get_unless_zero(&ref->kref)) { in ttm_ref_object_add()
127 if (item && kref_get_unless_zero(&item->ci_kref)) in config_item_get_unless_zero()
189 return kref_get_unless_zero(&res->kref); in rdma_restrack_get()
323 if (obj && !kref_get_unless_zero(&obj->base.refcount)) in i915_gem_object_lookup()
70 if (kref_get_unless_zero(&rdata->kref)) { in fc_disc_stop_rports()291 if (!kref_get_unless_zero(&rdata->kref)) in fc_disc_done()
206 if (!kref_get_unless_zero(&pg->kref)) in alua_find_get_pg()1024 if (!pg || !kref_get_unless_zero(&pg->kref)) { in alua_activate()1058 if (!pg || !kref_get_unless_zero(&pg->kref)) { in alua_check()
143 return kref_get_unless_zero(&job->kref); in bsg_job_get()
63 if (!kref_get_unless_zero(&aux_dev->refcount)) in drm_dp_aux_dev_get_by_minor()
286 if (n && kref_get_unless_zero(&n->n_ref)) in klist_iter_init_node()