]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Add mas_store_gfp() and fix mas_prev() and mas_store()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 6 Nov 2020 21:52:59 +0000 (16:52 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 6 Nov 2020 21:52:59 +0000 (16:52 -0500)
commit5112428a959bfdba6205f8182e42c059430469b0
tree8233a601d38b4827dacdb33d727b22dfcca08262
parent642a387c00beb2f7427177198c8c5337b283a3c0
maple_tree: Add mas_store_gfp() and fix mas_prev() and mas_store()

When searching for the previous value, walk the node first.  Don't just assume we are looking for the
last entry if it's MAS_START.

mas_store() and mas_destroy() now workk better with MAS_START as well.

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
include/linux/maple_tree.h
lib/maple_tree.c