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

Wei Yang richard.weiyang at gmail.com
Wed Nov 20 23:15:16 PST 2024


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?

-- 
Wei Yang
Help you, Help me



More information about the maple-tree mailing list