From: Liam R. Howlett Date: Tue, 16 Feb 2021 18:33:24 +0000 (-0500) Subject: lib/maple_tree: Reset request_count to 0 of old head on push X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e14de19d76bf244be34919feecc4d83f092c76a7;p=users%2Fjedix%2Flinux-maple.git lib/maple_tree: Reset request_count to 0 of old head on push Just to be safe Signed-off-by: Liam R. Howlett --- diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 76b84ec4f1bf..65d7ba0ea383 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -1021,6 +1021,7 @@ static inline void mas_push_node(struct ma_state *mas, struct maple_enode *used) reuse->total = 1; if ((head) && !(((unsigned long)head & 0x1))) { + head->request_count = 0; reuse->slot[0] = head; reuse->total += head->total; }