summaryrefslogtreecommitdiff
path: root/lib/test_ida.c
AgeCommit message (Collapse)AuthorFilesLines
2018-10-15test_ida: Fix lockdep warningMatthew Wilcox1-2/+2
The IDA was declared on the stack instead of statically, so lockdep triggered a warning that it was improperly initialised. Reported-by: 0day bot Tested-by: Rong Chen <rong.a.chen@intel.com> Signed-off-by: Matthew Wilcox <willy@infradead.org>
2018-08-22test_ida: check_ida_destroy and check_ida_allocMatthew Wilcox1-0/+54
Move these tests from the userspace test-suite to the kernel test-suite. Also convert check_ida_random to the new API. Signed-off-by: Matthew Wilcox <willy@infradead.org>
2018-08-22test_ida: Convert check_ida_conv to new APIMatthew Wilcox1-0/+30
Move as much as possible to kernel space; leave the parts in user space that rely on checking memory allocation failures to detect the transition between an exceptional entry and a bitmap. Signed-off-by: Matthew Wilcox <willy@infradead.org>
2018-08-22test_ida: Move ida_check_maxMatthew Wilcox1-0/+23
Convert to new API and move to kernel space. Signed-off-by: Matthew Wilcox <willy@infradead.org>
2018-08-22test_ida: Move ida_check_leafMatthew Wilcox1-0/+25
Convert to new API and move to kernel space. Take the opportunity to test the situation a little more thoroughly (ie at different offsets). Signed-off-by: Matthew Wilcox <willy@infradead.org>
2018-08-22ida: Start new test_ida moduleMatthew Wilcox1-0/+45
Start transitioning the IDA tests into kernel space. Framework heavily cribbed from test_xarray.c. Signed-off-by: Matthew Wilcox <willy@infradead.org>