shmem: Convert find_swap_entry to XArray
commite21a29552fa3f44ea41c53488875015ae70fd7f8
authorMatthew Wilcox <willy@infradead.org>
Wed, 22 Nov 2017 13:36:00 +0000 (22 08:36 -0500)
committerMatthew Wilcox <willy@infradead.org>
Sun, 21 Oct 2018 14:46:39 +0000 (21 10:46 -0400)
tree615c10e662faa49f3910fb269d4be6d029513632
parenta12831bf4293d38518e41b80dd897af0122bb268
shmem: Convert find_swap_entry to XArray

This is a 1:1 conversion.  The major part of this patch is converting
the test framework from userspace to kernel space and mirroring the
algorithm now used in find_swap_entry().

Signed-off-by: Matthew Wilcox <willy@infradead.org>
lib/test_xarray.c
mm/shmem.c
tools/testing/radix-tree/main.c
tools/testing/radix-tree/test.c
tools/testing/radix-tree/test.h