Re: [PATCH] rbtree: Introduce rb_remove()

From: Andrew Morton
Date: Thu Mar 28 2024 - 15:36:16 EST


On Thu, 28 Mar 2024 14:45:39 +0800 I Hsin Cheng <richard120310@xxxxxxxxx> wrote:

> Implement the function "rb_remove()", which can perform the removal of a
> certain key from the tree. Once the node with the searched key is found,
> we call "rb_erase()" to perform the removal of the node, otherwise the
> key doesn't exists in the tree then we return NULL.
>
> ...
>

We wouldn't merge a change like this unless there are callers of the
new function. Please tell us everything about that.