projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21440d7
)
mm/backing-dev.c: use rb_entry()
author
Geliang Tang
<geliangtang@gmail.com>
Wed, 22 Feb 2017 23:45:52 +0000
(15:45 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Thu, 23 Feb 2017 00:41:30 +0000
(16:41 -0800)
To make the code clearer, use rb_entry() instead of container_of() to
deal with rbtree.
Link:
http://lkml.kernel.org/r/671275de093d93ddc7c6f77ddc0d357149691a39.1484306840.git.geliangtang@gmail.com
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Cc: Jens Axboe <axboe@fb.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/backing-dev.c
patch
|
blob
|
blame
|
history
diff --git
a/mm/backing-dev.c
b/mm/backing-dev.c
index 39ce616a9d7162661cd5122405abb161a7e4349a..6d861d090e9fc79d39e2b48f57b1d9f4bc91463f 100644
(file)
--- a/
mm/backing-dev.c
+++ b/
mm/backing-dev.c
@@
-411,8
+411,8
@@
retry:
while (*node != NULL) {
parent = *node;
- congested =
container_of
(parent, struct bdi_writeback_congested,
-
rb_node);
+ congested =
rb_entry
(parent, struct bdi_writeback_congested,
+ rb_node);
if (congested->blkcg_id < blkcg_id)
node = &parent->rb_left;
else if (congested->blkcg_id > blkcg_id)