X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-tracker-id.c;h=a789e7c4919d3db0eca007bcdf2e92a410a78c4c;hb=18d9ea0d1fb92942a4a848745bf4dddc12a98e54;hp=9a4b98b2ef7ef17ffc834b77cc9305c5205346e6;hpb=d1f652f8d4f6d1de8f6d32ae8711d6469c38892c;p=lttng-modules.git diff --git a/lttng-tracker-id.c b/lttng-tracker-id.c index 9a4b98b2..a789e7c4 100644 --- a/lttng-tracker-id.c +++ b/lttng-tracker-id.c @@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) * * lttng-tracker-pid.c * @@ -15,9 +15,6 @@ #include #include -#include -#include -#include #include /* @@ -47,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 */ } @@ -83,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; } @@ -139,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; @@ -159,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);