]> 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, 24 Apr 2023 15:40:44 +0000 (11:40 -0400)
commit0d13eefa55a7438f4e0b5a32edf538ccbb4ade05
tree5ddac68247e2179d059b78675314d3df5f69a3fb
parent4a87b0409d936f480c4527e9b08efe6b4571d76a
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