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>
Showing
- lib/test_xarray.c 56 additions, 0 deletionslib/test_xarray.c
- mm/shmem.c 10 additions, 17 deletionsmm/shmem.c
- tools/testing/radix-tree/main.c 0 additions, 61 deletionstools/testing/radix-tree/main.c
- tools/testing/radix-tree/test.c 0 additions, 22 deletionstools/testing/radix-tree/test.c
- tools/testing/radix-tree/test.h 0 additions, 1 deletiontools/testing/radix-tree/test.h
Loading
Please register or sign in to comment