From: Liam R. Howlett Date: Wed, 24 Sep 2025 20:03:22 +0000 (-0400) Subject: it is unlikely to overwrite the whole tree X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=ceef4fbf90f9ca02c3c5b57a9a4ad7038f857910;p=users%2Fjedix%2Flinux-maple.git it is unlikely to overwrite the whole tree Signed-off-by: Liam R. Howlett --- diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 7c6cd898dd43..75a862f90b7d 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -3422,7 +3422,7 @@ static void mas_wr_spanning_store(struct ma_wr_state *wr_mas) } /* expanding NULLs may make this cover the entire range */ - if (!mas->index && r_mas.last == ULONG_MAX) { + if (unlikely(!mas->index && r_mas.last == ULONG_MAX)) { mas_set_range(mas, 0, ULONG_MAX); return mas_new_root(mas, wr_mas->entry); }