]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: calculate new_end when needed
authorWei Yang <richard.weiyang@gmail.com>
Thu, 17 Oct 2024 01:58:08 +0000 (01:58 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 1 Nov 2024 04:29:13 +0000 (21:29 -0700)
commitb7972b0508158a8c089b47e3282246a50ad9f2cd
treef9788bec10218bc04827fe8f906f8d9c10da679f
parenta111b8cc5962112f7e81e4b01ada53a53a3fb215
maple_tree: calculate new_end when needed

Patch series "Following cleanup after introduce mas_wr_store_type()", v2.

Patch 1 postpone new_end calculation when needed.
Patch 2 removes a unnecessary sanity check in mas_wr_slot_store().

This patch (of 2):

For wr_exact_fit/wr_new_root, we don't need to calculate new_end.

Let's postpone it until necessary.

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