From: Liam R. Howlett Date: Wed, 20 Oct 2021 17:03:06 +0000 (-0400) Subject: mas_node_store() unlikely\n X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Fmaple_v5.15-rc3_speed;p=users%2Fjedix%2Flinux-maple.git mas_node_store() unlikely\n Signed-off-by: Liam R. Howlett --- diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 6e202bf6f08f..1f28da90f57c 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -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++;