Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 7343
b: refs/heads/master
c: 32605a1
h: refs/heads/master
i:
  7341: c243c47
  7339: 85c4921
  7335: ad3986a
  7327: 6c9f20e
v: v3
  • Loading branch information
Marcelo Tosatti authored and Linus Torvalds committed Sep 7, 2005
1 parent 2eead8c commit 4ebce3c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 201b6264ff3865090747f58f48e087c3a35e0dbc
refs/heads/master: 32605a18152b246df483fadc1c23854addde8755
17 changes: 9 additions & 8 deletions trunk/lib/radix-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,15 +418,16 @@ EXPORT_SYMBOL(radix_tree_tag_clear);

#ifndef __KERNEL__ /* Only the test harness uses this at present */
/**
* radix_tree_tag_get - get a tag on a radix tree node
* @root: radix tree root
* @index: index key
* @tag: tag index
* radix_tree_tag_get - get a tag on a radix tree node
* @root: radix tree root
* @index: index key
* @tag: tag index
*
* Return the search tag corresponging to @index in the radix tree.
* Return values:
*
* Returns zero if the tag is unset, or if there is no corresponding item
* in the tree.
* 0: tag not present
* 1: tag present, set
* -1: tag present, unset
*/
int radix_tree_tag_get(struct radix_tree_root *root,
unsigned long index, int tag)
Expand Down Expand Up @@ -460,7 +461,7 @@ int radix_tree_tag_get(struct radix_tree_root *root,
int ret = tag_get(slot, tag, offset);

BUG_ON(ret && saw_unset_tag);
return ret;
return ret ? 1 : -1;
}
slot = slot->slots[offset];
shift -= RADIX_TREE_MAP_SHIFT;
Expand Down

0 comments on commit 4ebce3c

Please sign in to comment.