maple_tree: use mas_next_slot() directly
authorWei Yang <richard.weiyang@gmail.com>
Mon, 25 Nov 2024 02:41:56 +0000 (02:41 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 14 Jan 2025 06:40:30 +0000 (22:40 -0800)
commit002ebb925e2fcf150b0e346a960060ea4789ff01
tree344f221dfddd0a15b5a6e5531e14fff8f33d0ac2
parentcbc5dde0a461240046e8a41c43d7c3b76d5db952
maple_tree: use mas_next_slot() directly

The loop condition makes sure (mas.last < max), so we can directly use
mas_next_slot() here.

Since no other use of mas_next_entry(), it is removed.

Link: https://lkml.kernel.org/r/20241125024156.26093-1-richard.weiyang@gmail.com
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Cc: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/maple_tree.c