]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
maple_tree: we don't set offset to MAPLE_NODE_SLOTS on error
authorWei Yang <richard.weiyang@gmail.com>
Sat, 16 Nov 2024 01:48:05 +0000 (01:48 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 14 Jan 2025 06:40:39 +0000 (22:40 -0800)
commitf2760364add9996b8937ae388c8035ea1f242440
treec758e34d0cb4a7008b60b72c828f758232f30a65
parentf5bd418727856b104d6dcb43b144381c31250383
maple_tree: we don't set offset to MAPLE_NODE_SLOTS on error

When mas_anode_descend() not find gap, it sets -EBUSY instead of setting
offset to MAPLE_NODE_SLOTS.

Link: https://lkml.kernel.org/r/20241116014805.11547-4-richard.weiyang@gmail.com
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/maple_tree.c