]> www.infradead.org Git - users/hch/misc.git/commit
maple_tree: not necessary to check index/last again
authorWei Yang <richard.weiyang@gmail.com>
Thu, 31 Oct 2024 23:16:25 +0000 (23:16 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 11 Nov 2024 21:09:42 +0000 (13:09 -0800)
commit8c836f1712d750163fb00b6cc3a730149c215979
tree79f78bc782fc8732fa5c7ff0c9f9977987774a39
parentcefbcf206f6d92dc0076e3fda06e2b9331b77868
maple_tree: not necessary to check index/last again

Before calling mas_new_root(), the range has been checked.

Link: https://lkml.kernel.org/r/20241031231627.14316-4-richard.weiyang@gmail.com
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Cc: 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