]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Return error on mte_pivots() out of range
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 2 Sep 2022 15:23:21 +0000 (11:23 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Mon, 13 Feb 2023 13:42:04 +0000 (08:42 -0500)
commit737410ffc4c635bad2f0e7c8231e45ecc5c98331
tree146917ac39cb10f30ac8060cb1983c2bf4587d75
parent9c1b5cc778f4e34dbb9e94bec782093d91a0da71
maple_tree: Return error on mte_pivots() out of range

Rename mte_pivots() to mas_pivots() and pass through the ma_state to set
the error code to -EIO when the offset is out of range for the node
type.  Change the WARN_ON() to MAS_WARN_ON() to log the maple state.

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