diff options
author | Matthew Wilcox | 2016-05-21 02:01:39 +0200 |
---|---|---|
committer | Linus Torvalds | 2016-05-21 02:58:30 +0200 |
commit | d42cb1a9fffa9dc760c13302f00cdec25106e2f1 (patch) | |
tree | 3a5005b61f3f74eb3ab06f809723fe57cd76b8db /tools/testing/radix-tree/linux | |
parent | radix tree test suite: fix build (diff) | |
download | kernel-qcow2-linux-d42cb1a9fffa9dc760c13302f00cdec25106e2f1.tar.gz kernel-qcow2-linux-d42cb1a9fffa9dc760c13302f00cdec25106e2f1.tar.xz kernel-qcow2-linux-d42cb1a9fffa9dc760c13302f00cdec25106e2f1.zip |
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')
-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 @@ #include "../../include/linux/compiler.h" +#define CONFIG_SHMEM +#define CONFIG_SWAP + #ifndef NULL #define NULL 0 #endif |