projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7505a13
)
powerpc/perf/24x7: use rb_entry
author
Geliang Tang
<geliangtang@gmail.com>
Tue, 20 Dec 2016 14:02:17 +0000
(22:02 +0800)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Thu, 4 Jul 2019 07:09:37 +0000
(17:09 +1000)
To make the code clearer, use rb_entry() instead of container_of() to
deal with rbtree.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/perf/hv-24x7.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/perf/hv-24x7.c
b/arch/powerpc/perf/hv-24x7.c
index d2b8e6061933aa855a752bc2bf1cd79c0822b7c2..bdeb41b1a6e5893768ac94220c1a1dd976ff745d 100644
(file)
--- a/
arch/powerpc/perf/hv-24x7.c
+++ b/
arch/powerpc/perf/hv-24x7.c
@@
-571,7
+571,7
@@
static int event_uniq_add(struct rb_root *root, const char *name, int nl,
struct event_uniq *it;
int result;
- it =
container_of
(*new, struct event_uniq, node);
+ it =
rb_entry
(*new, struct event_uniq, node);
result = ev_uniq_ord(name, nl, domain, it->name, it->nl,
it->domain);