]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mas_node_store() unlikely\n maple_v5.15-rc3_speed
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 20 Oct 2021 17:03:06 +0000 (13:03 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 20 Oct 2021 19:23:10 +0000 (15:23 -0400)
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
lib/maple_tree.c

index 6e202bf6f08f53055425fa6edeeeab2403f85d0e..1f28da90f57c7da3249b5da4403f583402558884 100644 (file)
@@ -3918,7 +3918,7 @@ static inline bool mas_node_store(struct ma_state *mas, void *entry,
                offset_end++;
        } else if (mas->last < max) {
                /* new range ends in this range */
-               if (max == ULONG_MAX)
+               if (unlikely(max == ULONG_MAX))
                        mas_bulk_rebalance(mas, end, mt);
 
                new_end++;