From: Liam R. Howlett Date: Mon, 11 Jan 2021 16:58:24 +0000 (-0500) Subject: maple_tree: unlikely() optimize mas_range_load on MAPLE_NODE_SLOT X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=d91fb09b3f9e3e3c5aaa13dd4656ceadf16d471f;p=users%2Fjedix%2Flinux-maple.git maple_tree: unlikely() optimize mas_range_load on MAPLE_NODE_SLOT Signed-off-by: Liam R. Howlett --- diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 6d7f128807d5..ed6c24d200eb 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -4535,7 +4535,7 @@ retry: if (mas_dead_node(mas, index)) goto retry; - if (mas->offset == MAPLE_NODE_SLOTS) + if (unlikely(mas->offset == MAPLE_NODE_SLOTS)) return NULL; // Not found. return mas_get_slot(mas, mas->offset);