aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/radix-tree/iteration_check.c
diff options
context:
space:
mode:
authorMatthew Wilcox <[email protected]>2016-12-14 23:07:59 +0000
committerLinus Torvalds <[email protected]>2016-12-15 00:04:09 +0000
commit31023cd66468359790beb046b6808fe0444672a2 (patch)
tree55cee431758d32ae93f14b444ac33618bcd8f8b6 /tools/testing/radix-tree/iteration_check.c
parenttools: add WARN_ON_ONCE (diff)
downloadkernel-31023cd66468359790beb046b6808fe0444672a2.tar.gz
kernel-31023cd66468359790beb046b6808fe0444672a2.zip
radix tree test suite: allow GFP_ATOMIC allocations to fail
In order to test the preload code, it is necessary to fail GFP_ATOMIC allocations, which requires defining GFP_KERNEL and GFP_ATOMIC properly. Remove the obsolete __GFP_WAIT and copy the definitions of the __GFP flags which are used from the kernel include files. We also need the real definition of gfpflags_allow_blocking() to persuade the radix tree to actually use its preallocated nodes. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Matthew Wilcox <[email protected]> Tested-by: Kirill A. Shutemov <[email protected]> Cc: Konstantin Khlebnikov <[email protected]> Cc: Ross Zwisler <[email protected]> Cc: Matthew Wilcox <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/testing/radix-tree/iteration_check.c')
0 files changed, 0 insertions, 0 deletions