]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: add a test checking storing null
authorWei Yang <richard.weiyang@gmail.com>
Thu, 31 Oct 2024 23:16:27 +0000 (23:16 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 1 Nov 2024 04:29:36 +0000 (21:29 -0700)
commita55df534129f776ed6e9b4e4973935b040070652
tree9110d66f904b5335e9fc2d0794750adb34d888ff
parent907a8afde7f58103699bce1862b37abfde78522d
maple_tree: add a test checking storing null

Add a test to assert that, when storing null to am empty tree or a
single entry tree it will not result into:

  * a root node with range [0, ULONG_MAX] set to NULL
  * a root node with consecutive slot set to NULL

Link: https://lkml.kernel.org/r/20241031231627.14316-6-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/test_maple_tree.c