After introducing RB_DECLARE_CALLBACKS_MAX, we do not need the
augment_recompute function to recompute node->augmented during
rbtree rebalancing callbacks. However, this function was also
used in check_augmented() to verify that node->augmented was
correctly set, so we need to reintroduce the code for that check.

Signed-off-by: Michel Lespinasse <>
Cc: Peter Zijlstra (Intel) <>
Cc: David Howells <>
Cc: Davidlohr Bueso <>
Cc: Uladzislau Rezki <>
Signed-off-by: Andrew Morton <>
1 file changed