X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-tracker-id.c;h=a789e7c4919d3db0eca007bcdf2e92a410a78c4c;hb=62bb62a5d874917e0f8003c49ec1306ca95e151d;hp=55d8cef1bf15ba12f1d86e6983f573b9a7e203dd;hpb=0d260d3d3e28849772a060a9b1374712c0959fca;p=lttng-modules.git diff --git a/lttng-tracker-id.c b/lttng-tracker-id.c index 55d8cef1..a789e7c4 100644 --- a/lttng-tracker-id.c +++ b/lttng-tracker-id.c @@ -15,8 +15,6 @@ #include #include -#include -#include #include /* @@ -46,7 +44,7 @@ bool lttng_id_tracker_lookup(struct lttng_id_tracker_rcu *p, int id) uint32_t hash = hash_32(id, 32); head = &p->id_hash[hash & (LTTNG_ID_TABLE_SIZE - 1)]; - lttng_hlist_for_each_entry_rcu(e, head, hlist) { + hlist_for_each_entry_rcu_notrace(e, head, hlist) { if (id == e->id) return true; /* Found */ } @@ -82,7 +80,7 @@ int lttng_id_tracker_add(struct lttng_id_tracker *lf, int id) allocated = true; } head = &p->id_hash[hash & (LTTNG_ID_TABLE_SIZE - 1)]; - lttng_hlist_for_each_entry(e, head, hlist) { + hlist_for_each_entry(e, head, hlist) { if (id == e->id) return -EEXIST; } @@ -138,7 +136,7 @@ int lttng_id_tracker_del(struct lttng_id_tracker *lf, int id) * No need of _safe iteration, because we stop traversal as soon * as we remove the entry. */ - lttng_hlist_for_each_entry(e, head, hlist) { + hlist_for_each_entry(e, head, hlist) { if (id == e->id) { id_tracker_del_node_rcu(e); return 0; @@ -158,7 +156,7 @@ static void lttng_id_tracker_rcu_destroy(struct lttng_id_tracker_rcu *p) struct lttng_id_hash_node *e; struct hlist_node *tmp; - lttng_hlist_for_each_entry_safe(e, tmp, head, hlist) + hlist_for_each_entry_safe(e, tmp, head, hlist) id_tracker_del_node(e); } kfree(p);