]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
test_maple_tree: Fix value for 32bit tests and fix check_load in double
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 17 Dec 2018 19:14:24 +0000 (14:14 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 17 Dec 2018 19:14:24 +0000 (14:14 -0500)
insert leaf test.

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

index 3bf22807c1a0a3b0ecaaaf67fa81af34dd71e192..a9ee97514d49e45ad0b69f42897ed2e7993b2446 100644 (file)
@@ -201,7 +201,7 @@ static noinline void check_seq(struct maple_tree *mt)
 static noinline void check_double_insert_leaf(struct maple_tree *mt)
 {
        unsigned long i, j;
-       unsigned long huge = 50000000000;
+       unsigned long huge = 4000UL * 1000 * 1000;
 
        MT_BUG_ON(mt, !mtree_empty(mt));
 
@@ -210,7 +210,7 @@ static noinline void check_double_insert_leaf(struct maple_tree *mt)
                check_insert(mt, i, xa_mk_value(i));
                for (j = huge; j >= i; j /= 2) {
                        check_load(mt, j, xa_mk_value(j));
-                       check_load(mt, (unsigned long)(xa_mk_value(j+1)), NULL);
+                       check_load(mt, j+1, NULL);
                }
                i /= 2;
        }