diff options
author | Matthew Wilcox <willy@linux.intel.com> | 2016-05-20 20:01:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-05-20 20:58:30 -0400 |
commit | d42cb1a9fffa9dc760c13302f00cdec25106e2f1 (patch) | |
tree | 3a5005b61f3f74eb3ab06f809723fe57cd76b8db /tools/testing/radix-tree/linux/kernel.h | |
parent | f518b1607e128a8dcfa75f539864c1321c5a18ea (diff) |
radix tree test suite: add tests for radix_tree_locate_item()
Fairly simple tests; add various items to the tree, then make sure we
can find them again. Also check that a pointer that we know isn't in
the tree is not found.
Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: Konstantin Khlebnikov <koct9i@gmail.com>
Cc: Kirill Shutemov <kirill.shutemov@linux.intel.com>
Cc: Jan Kara <jack@suse.com>
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/testing/radix-tree/linux/kernel.h')
-rw-r--r-- | tools/testing/radix-tree/linux/kernel.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/testing/radix-tree/linux/kernel.h b/tools/testing/radix-tree/linux/kernel.h index 6d0cdf618084..76a88f35fdc4 100644 --- a/tools/testing/radix-tree/linux/kernel.h +++ b/tools/testing/radix-tree/linux/kernel.h | |||
@@ -9,6 +9,9 @@ | |||
9 | 9 | ||
10 | #include "../../include/linux/compiler.h" | 10 | #include "../../include/linux/compiler.h" |
11 | 11 | ||
12 | #define CONFIG_SHMEM | ||
13 | #define CONFIG_SWAP | ||
14 | |||
12 | #ifndef NULL | 15 | #ifndef NULL |
13 | #define NULL 0 | 16 | #define NULL 0 |
14 | #endif | 17 | #endif |