* [merged] timerqueue-use-rb_entry_safe.patch removed from -mm tree
@ 2017-01-23 20:27 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2017-01-23 20:27 UTC (permalink / raw)
To: geliangtang, john.stultz, tglx, mm-commits
The patch titled
Subject: lib/timerqueue.c: use rb_entry_safe
has been removed from the -mm tree. Its filename was
timerqueue-use-rb_entry_safe.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Geliang Tang <geliangtang@gmail.com>
Subject: lib/timerqueue.c: use rb_entry_safe
Use rb_entry_safe() instead of open-coding it.
Link: http://lkml.kernel.org/r/0d5cf199ac43792df0b6f7e2145545c30fa1dbbe.1482222135.git.geliangtang@gmail.com
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
lib/timerqueue.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff -puN lib/timerqueue.c~timerqueue-use-rb_entry_safe lib/timerqueue.c
--- a/lib/timerqueue.c~timerqueue-use-rb_entry_safe
+++ a/lib/timerqueue.c
@@ -80,8 +80,7 @@ bool timerqueue_del(struct timerqueue_he
if (head->next == node) {
struct rb_node *rbn = rb_next(&node->node);
- head->next = rbn ?
- rb_entry(rbn, struct timerqueue_node, node) : NULL;
+ head->next = rb_entry_safe(rbn, struct timerqueue_node, node);
}
rb_erase(&node->node, &head->head);
RB_CLEAR_NODE(&node->node);
_
Patches currently in -mm which might be from geliangtang@gmail.com are
mm-vmallocc-use-rb_entry_safe.patch
writeback-use-rb_entry.patch
proc-use-rb_entry.patch
fs-add-i_blocksize-fix.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-01-23 20:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-23 20:27 [merged] timerqueue-use-rb_entry_safe.patch removed from -mm tree akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).