diff options
| author | Wei Yang <[email protected]> | 2019-12-05 00:51:47 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2019-12-05 03:44:13 +0000 |
| commit | 11d43e62f693c66c8c76c2ea2349e0f3c5764964 (patch) | |
| tree | c9ee0fa1a402360641bc1d0275961a8ac87cea04 /lib/test_meminit.c | |
| parent | gpio: pca953x: utilize the for_each_set_clump8 macro (diff) | |
| download | kernel-11d43e62f693c66c8c76c2ea2349e0f3c5764964.tar.gz kernel-11d43e62f693c66c8c76c2ea2349e0f3c5764964.zip | |
lib/rbtree: set successor's parent unconditionally
Both in Case 2 and 3, we exchange n and s. This mean no matter whether
child2 is NULL or not, successor's parent should be assigned to node's.
This patch takes this step out to make it explicit and reduce the
ambiguity.
Besides, this step reduces some symbol size like rb_erase().
KERN_CONFIG upstream patched
OPT_FOR_PERF 877 870
OPT_FOR_SIZE 635 621
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Wei Yang <[email protected]>
Acked-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Michel Lespinasse <[email protected]>
Reviewed-by: Davidlohr Bueso <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/test_meminit.c')
0 files changed, 0 insertions, 0 deletions
