* [patch] tools/testing/radix-tree: ida_get_new_above returns EAGAIN
@ 2017-10-20 23:12 Jeff Moyer
0 siblings, 0 replies; only message in thread
From: Jeff Moyer @ 2017-10-20 23:12 UTC (permalink / raw)
To: Matthew Wilcox; +Cc: linux-kernel
...not ENOMEM. Fix it.
Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
diff --git a/tools/testing/radix-tree/idr-test.c b/tools/testing/radix-tree/idr-test.c
index 30cd0b2..2056d83 100644
--- a/tools/testing/radix-tree/idr-test.c
+++ b/tools/testing/radix-tree/idr-test.c
@@ -380,7 +380,7 @@ void ida_check_random(void)
do {
ida_pre_get(&ida, GFP_KERNEL);
err = ida_get_new_above(&ida, bit, &id);
- } while (err == -ENOMEM);
+ } while (err == -EAGAIN);
assert(!err);
assert(id == bit);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-10-20 23:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-20 23:12 [patch] tools/testing/radix-tree: ida_get_new_above returns EAGAIN Jeff Moyer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®