Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1541494
| From | Matthew Wilcox <mawilcox@linuxonhyperv.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 3/5] radix tree test suite: Add new tag check |
| Date | 2016-12-13 21:30 +0100 |
| Message-ID | <sO1S2-5EI-27@gated-at.bofh.it> (permalink) |
| References | <sO1S1-5EI-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Matthew Wilcox <mawilcox@microsoft.com> We have a check that setting a tag on a single entry at root succeeds, but we were missing a check that clearing a tag on that same entry also succeeds. Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com> --- tools/testing/radix-tree/tag_check.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/testing/radix-tree/tag_check.c b/tools/testing/radix-tree/tag_check.c index ed5f87d..fd98c13 100644 --- a/tools/testing/radix-tree/tag_check.c +++ b/tools/testing/radix-tree/tag_check.c @@ -324,6 +324,9 @@ static void single_check(void) assert(ret == 1); ret = radix_tree_gang_lookup_tag(&tree, (void **)items, 0, BATCH, 1); assert(ret == 1); + item_tag_clear(&tree, 0, 0); + ret = radix_tree_gang_lookup_tag(&tree, (void **)items, 0, BATCH, 0); + assert(ret == 0); item_kill_tree(&tree); } -- 2.10.2
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/5] Additional radix tree patches for 4.10 Matthew Wilcox <mawilcox@linuxonhyperv.com> - 2016-12-13 21:30 +0100 [PATCH 4/5] radix tree test suite: Delete unused rcupdate.c Matthew Wilcox <mawilcox@linuxonhyperv.com> - 2016-12-13 21:30 +0100 [PATCH 3/5] radix tree test suite: Add new tag check Matthew Wilcox <mawilcox@linuxonhyperv.com> - 2016-12-13 21:30 +0100 [PATCH 1/5] radix tree test suite: Cache recently freed objects Matthew Wilcox <mawilcox@linuxonhyperv.com> - 2016-12-13 21:30 +0100 [PATCH 2/5] radix-tree: Ensure counts are initialised Matthew Wilcox <mawilcox@linuxonhyperv.com> - 2016-12-13 21:30 +0100
csiph-web