rbtree: add __rb_change_child() helper function
authorMichel Lespinasse <walken@google.com>
Wed, 3 Jan 2018 11:41:11 +0000 (12:41 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 3 Jan 2018 11:41:11 +0000 (12:41 +0100)
commit22eecde9ebb38b3ae0a5040189750ab9b6476360
treec3d0819b5a5fc9b8dcf73d09b3f51102728631d1
parentea32b54fda4b26ac8298a0d7e40554f85b414a39
rbtree: add __rb_change_child() helper function

Add __rb_change_child() as an inline helper function to replace code that
would otherwise be duplicated 4 times in the source.

No changes to binary size or speed.

Signed-off-by: Michel Lespinasse <walken@google.com>
Reviewed-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
[Linux commit 7abc704ae399fcb9c51ca200b0456f8a975a8011]

Ported to Xen.

Signed-off-by: Praveen Kumar <kpraveen.lkml@gmail.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/common/rbtree.c