diff options
author | Wei Yang <[email protected]> | 2019-12-04 16:51:47 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2019-12-04 19:44:13 -0800 |
commit | 11d43e62f693c66c8c76c2ea2349e0f3c5764964 (patch) | |
tree | c9ee0fa1a402360641bc1d0275961a8ac87cea04 /lib/test_fortify/write_overflow-strcpy.c | |
parent | ae81217edc18135d13e5b6c17609ee2c07af4188 (diff) |
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_fortify/write_overflow-strcpy.c')
0 files changed, 0 insertions, 0 deletions