linux-sg2042/tools/testing/radix-tree/linux
Matthew Wilcox 0a835c4f09 Reimplement IDR and IDA using the radix tree
The IDR is very similar to the radix tree.  It has some functionality that
the radix tree did not have (alloc next free, cyclic allocation, a
callback-based for_each, destroy tree), which is readily implementable on
top of the radix tree.  A few small changes were needed in order to use a
tag to represent nodes with free space below them.  More extensive
changes were needed to support storing NULL as a valid entry in an IDR.
Plain radix trees still interpret NULL as a not-present entry.

The IDA is reimplemented as a client of the newly enhanced radix tree.  As
in the current implementation, it uses a bitmap at the last level of the
tree.

Signed-off-by: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Tested-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Konstantin Khlebnikov <koct9i@gmail.com>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2017-02-13 21:44:01 -05:00
..
bug.h tools: add WARN_ON_ONCE 2016-12-14 16:04:09 -08:00
cpu.h redo: radix tree test suite: fix compilation 2016-12-15 11:04:20 -08:00
gfp.h Reimplement IDR and IDA using the radix tree 2017-02-13 21:44:01 -05:00
idr.h Reimplement IDR and IDA using the radix tree 2017-02-13 21:44:01 -05:00
init.h radix tree test suite: Reduce kernel.h 2017-02-13 16:09:42 -05:00
kernel.h Reimplement IDR and IDA using the radix tree 2017-02-13 21:44:01 -05:00
kmemleak.h radix tree test harness 2016-03-17 15:09:34 -07:00
percpu.h radix tree test harness 2016-03-17 15:09:34 -07:00
preempt.h radix tree test suite: Reduce kernel.h 2017-02-13 16:09:42 -05:00
radix-tree.h radix tree test harness 2016-03-17 15:09:34 -07:00
rcupdate.h radix tree test harness 2016-03-17 15:09:34 -07:00
slab.h radix tree test suite: cache recently freed objects 2016-12-14 16:04:10 -08:00