[PATCH 3/3] maple_tree: we don't set offset to MAPLE_NODE_SLOTS on error

Liam R. Howlett Liam.Howlett at oracle.com
Fri Nov 22 07:18:52 PST 2024


* Wei Yang <richard.weiyang at gmail.com> [241121 02:15]:
> On Tue, Nov 19, 2024 at 08:58:06AM -0500, Liam R. Howlett wrote:
> >* Wei Yang <richard.weiyang at gmail.com> [241118 21:15]:
> >> On Mon, Nov 18, 2024 at 03:50:49PM -0500, Liam R. Howlett wrote:
> >> >* Wei Yang <richard.weiyang at gmail.com> [241115 20:48]:
> >> >> When mas_anode_descend() not find gap, it sets -EBUSY instead of setting
> >> >> offset to MAPLE_NODE_SLOTS.
> >> >
> >> >This is for mas_start(), which I think is not necessary anymore.
> >> 
> >> You mean mas_start() would set offset to MAPLE_NODE_SLOTS on ma_none and
> >> ma_root?
> >> 
> >> Thanks for the information, I didn't realize this.
> >> 
> >> These two cases are handled by mas_sparse_area().
> >
> >Yeah, I'm not sure that needing this lived to the released code.
> 
> I don't get you clearly.
> 
> What should I do next?

This looks good.

Reviewed-by: Liam R. Howlett <Liam.Howlett at Oracle.com>



More information about the maple-tree mailing list