]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
lib/maple_tree: Reset request_count to 0 of old head on push
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 16 Feb 2021 18:33:24 +0000 (13:33 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 16 Feb 2021 18:33:24 +0000 (13:33 -0500)
Just to be safe

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

index 76b84ec4f1bf19de6e67a9043de7351d55e0b529..65d7ba0ea383de05c8cc6c805602cf485c79c2fa 100644 (file)
@@ -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;
        }