]> www.infradead.org Git - users/jedix/linux-maple.git/commit
lib/maple_tree: Fix mas_store_gfp() on spanning store.
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 18 Feb 2021 14:27:48 +0000 (09:27 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 18 Feb 2021 14:27:48 +0000 (09:27 -0500)
commitfa29820dbc6772575958474af1a49f358ce84378
treee0ee3d45353c94b73d913e43823dd1fd3597074b
parent44e456049cce21ff22ba959a6c33e244cda92a28
lib/maple_tree: Fix mas_store_gfp() on spanning store.

Spanning store detection needs to be more robust than checking if it spans the end of
a node.  Fix the detection by using mas_is_span_wr().  Also ensure it's not MAS_NONE.

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