XArray: Fix splitting to non-zero orders
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 19 Nov 2020 13:32:31 +0000 (08:32 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 30 Mar 2021 17:42:33 +0000 (13:42 -0400)
commit3012110d71f41410932924e1d188f9eb57f1f824
treebdad57981759c2fe3fc329cef4577297ab9a76b8
parent12efebab09e383bf366bec323bd296b7d90e1c43
XArray: Fix splitting to non-zero orders

Splitting an order-4 entry into order-2 entries would leave the array
containing pointers to 000040008000c000 instead of 000044448888cccc.
This is a one-character fix, but enhance the test suite to check this
case.

Reported-by: Zi Yan <ziy@nvidia.com>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
lib/test_xarray.c
lib/xarray.c