From 12672ee558d3a502fb772a54a971b64eb7415129 Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Wed, 2 Dec 2020 12:23:35 -0500 Subject: [PATCH] maple_tree: stop _mas_get_empty_area() from converting to inclusive search. This should be done in the mm code Signed-off-by: Liam R. Howlett --- lib/maple_tree.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index b50b7cb60927..18a87263fee3 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -4329,7 +4329,6 @@ static inline int _mas_get_empty_area(struct ma_state *mas, unsigned long size, bool forward) { mas_start(mas); - max--; // Convert to inclusive. // Empty set. if (mas_is_none(mas) || mas_is_ptr(mas)) { -- 2.50.1