xarray: Change definition of sibling entries
Instead of storing a pointer to the slot containing the canonical entry, store the offset of the slot. Produces slightly more efficient code (~300 bytes) and simplifies the implementation. Signed-off-by:Matthew Wilcox <willy@infradead.org> Reviewed-by:
Josef Bacik <jbacik@fb.com>
Showing
- include/linux/radix-tree.h 1 addition, 4 deletionsinclude/linux/radix-tree.h
- include/linux/xarray.h 92 additions, 0 deletionsinclude/linux/xarray.h
- lib/Kconfig 7 additions, 0 deletionslib/Kconfig
- lib/radix-tree.c 19 additions, 45 deletionslib/radix-tree.c
- tools/testing/radix-tree/Makefile 1 addition, 1 deletiontools/testing/radix-tree/Makefile
- tools/testing/radix-tree/generated/autoconf.h 1 addition, 0 deletionstools/testing/radix-tree/generated/autoconf.h
Loading
Please register or sign in to comment