]>
www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Fix mas_expected_entries() off by one
When inserting nodes, a final call to split the nodes will require a new
parent. Add this as the working area for mas_expected_entries().
Add a maple state flag which will WARN_ON() if there is insufficient
nodes allocated.
Export mas_is_err() to be used in checking mas_store() returns
externally.
Fixes: 06b152b7980a (Maple Tree: add new data structure)
Reported-by: Yu Zhao <yuzhao@google.com>
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>